|
-
May 7th, 2003, 10:44 PM
#1
Thread Starter
Fanatic Member
Dynamically adding an unconstant number of dropdownlists
here's the situation i've befallen in..:
I am making a category selecting web control. It consists of basically multiple dropdownlists that are autopostback...
the user is shown one dropdownlist to start, with a list of categories.... they select a category, and another dropdownlist appears with all of the selected category's subcategories... they choose a subcategory, and all of it's subcategories are shown, and so on and so on...
this needs to be done somewhat dynamically as there can be an infinite depth of categories... also, the user can choose a different category in any of the dropdownlists, and that would potentially get rid of some dropdownlists and/or change other lists.. you get my drift...
basically, just a big fancy category selector... i started writing this on my own, and it has kind of worked, but been very buggy... any suggestions on how to do this?
-
May 8th, 2003, 12:28 AM
#2
PowerPoster
Maybe you might want to look into the treeview?
I think it is only for IE browsers though... Worth a shot?
http://msdn.microsoft.com/library/de...rols_entry.asp
There is an article in this months msdn mag about using it. You may want to go check it out if you don't get it in the mail.
-
May 8th, 2003, 04:17 PM
#3
Thread Starter
Fanatic Member
well, i'd REALLY like to stick with dropdownlists here if at all possible.... the problem is, i'm creating these controls each time the page loads, dynamically.. .they show up fine and all, except for the fact that they don't seem to be showing up at all in the Controls collection for some reason...
I'm doing a general loop through the controls collection of the panel that i'm adding all these dropdownlists to, and absolutely nothing shows up (in the loop, i do a simple Response.Write type thing).. it's so odd....
any ideas?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|