Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Mulitiple selects from dropdown menus

Status
Not open for further replies.

tsp1lrk

IS-IT--Management
May 30, 2001
103
US
Hello,

I'm searching for a suggestion to my scenario,hopefully someone could help!

I have a DropDown Menu of Locations. When someone chooses a location, they have the choice to filter the results by choosing from a radio button, I'm hiding/showing differrent dropdowns each time they switch; for instance they can filter it by Region, District etc. The results are displayed in a datagrid.

Now There are checkboxes in the datagrid to make selections of what they want to choose. Currently, they make their selections and click "add to approp" this info. is transferred to a text field in the parent window. I want to be able to store these selections somewhere because if I choose say, 2 selections from one location, then change the location in the Dropdown and make additional selections, the original selections are gone! How do I collect everything the user selects and then when they click "Add to Approp" all the values are added to the textbox that they have selected? Help!!!

Thanks for any advice,
Lisa
UPS
 
Lisa, make a hidden field in your form and whenever a location is selected add it to it value so that the value of the field will be a string of locations separated by commas or dashes or whatever.

--------------------------
"two wrongs don't make a right, but three lefts do" - the unknown sage
 
Thanks,
Can you supply an example in VB.net? This is relatively new to me, so I'm a little confused. This eventually has to go into a SQL database, so my next venture will be to get that string of info in a database. actually, it will have to go to another table, I just need to get those collected values somewhere.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top