DropDownList in asp.net

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

hi
i have 2 DropDownList :
DDLCategory: the Category to sale
DDLItem: the items that belonging to this Category
whan i select item from DDLCategory - i want that all the items that
belonging to this Category will be in the DDLItem
i use :
SelectedIndex, SelectedItem...AND SO ON...AND always i get the first item
from DDLCategory
what sohld i need to write?
thanks
 
I would suggest using the SelectedIndexChanged event. In order to to make
the items dropdown change immediately after the category is changed, you
will need to set the AutoPostBack property of the category dropdown to TRUE.
It sounds like you already know what to do from here. (NOTE: You will
probably get more help on ASP.NET in the
microsoft.public.dotnet.framework.aspnet newsgroup)
 
Back
Top