Last post Feb 23, 2012 02:46 PM by ramiramilu
Feb 23, 2012 06:42 AM|umeshr07|LINK
I want to generate dynamic dropdownlist with its event SelectedIndexChanged. I want to generate new dropdownlist in same event. again i want to do it upto 4 level.
Please tell me any systematic method to do the same.
Feb 23, 2012 06:54 AM|usman400|LINK
Place all (four or five) drop down lists, in page load event set .Visible=false for all dropdowns except for the first one
then in the resepctive code of drop downs, set .Visible = true for next drop down ...
Feb 23, 2012 07:49 AM|umeshr07|LINK
I can not do like this. I am getting all dropdownlist controls from databse tables.
And I dont know upto how many level it will get. I want to generate it in dynamically.
Feb 23, 2012 08:22 AM|p.o.d.|LINK
Create one event handler method for SelectedIndexChanged and assign it to every dropdown you will have.
For defining which DropDown triggered your method cast sender to DropDown and ask for ID property.
Feb 23, 2012 02:46 PM|ramiramilu|LINK
Cascading dropdownlist - http://www.asp.net/ajaxLibrary/AjaxControlToolkitSampleSite/CascadingDropDown/CascadingDropDown.aspx
I think it might be useful for you...