Ask a Question related to ASP.NET General, Design and Development.
-
Chris Becker #1
How to question: Added new values to dropdown lists & database
This is my attempt to rephrase a question I asked earlier that got no
response. I suspect it was my poor/unplanned wording. Here is another
attempt:
I have a form with some drop down lists. I would like the user to be able
to start filling in the form, then get to one of the dropdown lists (ex:
Service Type) and realize that the dropdown list does not contain the entry
that they need. So next to the Service Type drop down list is a
link/image/button/whatever that they can click to bring up a new window ( or
???) to add that new Service Type item. When they save this new Service
Type item's information, it will be added to the database ServiceTypes table
in the db, the Add Service Type window will close, and the form that they
were originally filling out will be preserved, but refreshed to show the new
service type in the drop down list.
I'm not asking for exact code necessarily, just some general concepts/links
on how others have accomplished it. I am looking for a more elegant way
than saving each field's data into some temp storage and refreshing the
whole page to add the new service type item, then returning the user back to
the original form and re-filling all of the fields with the stored values.
Thanks
Chris
Chris Becker Guest
-
working with dropdown lists
I appologize for what is probably a very novice question. I am creating dropdown lists for an online store. The purpose of the list is to choose a... -
Dropdown lists navigation
Hi Sven, Unfortunately I never got this to work, because I went round in circles for a while and ran out of time. However, I did find a way round,... -
Dropdown lists navigation2
Hi everybody, I'm trying to make Dropdown list in my presentation according to previous topic about Dropdown menu but without the success. The goal... -
Sorting data in Listbox/Dropdown lists
hi, i have loaded the listbox with the data from a database using dataset. i am finding difficulty in sorting the data. i am not able to find a... -
dropdown lists - query parameter error
Hi, I'm using the following for 2 dropdown boxes in asp.net. The first is the basis for the contents of the second. First works fine, then on... -
Steve C. Orr, MCSD #2
Re: How to question: Added new values to dropdown lists & database
Sounds like you'll be needing to use some client side javascript.
You can open a new window using javascript such as this:
a=window.open('http://localhost/TestWebApp/Test.aspx','_new')
There are all kinds of options for setting window properties such as window
size and toolbar visibility.
Here's more info:
[url]http://msdn.microsoft.com/workshop/author/dhtml/reference/methods/open_0.asp[/url]
From that new window you can reference the original parent window with
thisjavascript reference:
window.opener
Here's more info on that:
[url]http://www.mozilla.org/docs/dom/domref/dom_window_ref77.html[/url]
--
I hope this helps,
Steve C. Orr, MCSD
[url]http://Steve.Orr.net[/url]
"Chris Becker" <slolife@hotmail.com> wrote in message
news:O6PQUZOQDHA.2636@TK2MSFTNGP10.phx.gbl...entry> This is my attempt to rephrase a question I asked earlier that got no
> response. I suspect it was my poor/unplanned wording. Here is another
> attempt:
>
> I have a form with some drop down lists. I would like the user to be able
> to start filling in the form, then get to one of the dropdown lists (ex:
> Service Type) and realize that the dropdown list does not contain the( or> that they need. So next to the Service Type drop down list is a
> link/image/button/whatever that they can click to bring up a new windowtable> ???) to add that new Service Type item. When they save this new Service
> Type item's information, it will be added to the database ServiceTypesnew> in the db, the Add Service Type window will close, and the form that they
> were originally filling out will be preserved, but refreshed to show theconcepts/links> service type in the drop down list.
>
> I'm not asking for exact code necessarily, just some generalto> on how others have accomplished it. I am looking for a more elegant way
> than saving each field's data into some temp storage and refreshing the
> whole page to add the new service type item, then returning the user back> the original form and re-filling all of the fields with the stored values.
>
> Thanks
> Chris
>
>
Steve C. Orr, MCSD Guest
-
David Waz... #3
How to question: Added new values to dropdown lists & database
I like to keep that kind of stuff on the same page if I
can.
you can put the "add new thing" controls next to the drop
down, with visible set to false. Clicking the icon makes
it visible. They add the info, click the Add button in
that section, and you bind the drop-down to the table, now
with the new value.
that got no>-----Original Message-----
>This is my attempt to rephrase a question I asked earlierHere is another>response. I suspect it was my poor/unplanned wording.the user to be able>attempt:
>
>I have a form with some drop down lists. I would likedropdown lists (ex:>to start filling in the form, then get to one of thecontain the entry>Service Type) and realize that the dropdown list does notlist is a>that they need. So next to the Service Type drop downup a new window ( or>link/image/button/whatever that they can click to bringthis new Service>???) to add that new Service Type item. When they saveServiceTypes table>Type item's information, it will be added to the databasethe form that they>in the db, the Add Service Type window will close, andrefreshed to show the new>were originally filling out will be preserved, butgeneral concepts/links>service type in the drop down list.
>
>I'm not asking for exact code necessarily, just somemore elegant way>on how others have accomplished it. I am looking for arefreshing the>than saving each field's data into some temp storage andreturning the user back to>whole page to add the new service type item, thenthe stored values.>the original form and re-filling all of the fields with>
>Thanks
>Chris
>
>
>.
>David Waz... Guest



Reply With Quote

