I have two related controls DropDownList. Depending on the choice in the parent DropDownList, I want to hide some elements of the child element DropDownListif they were not associated with the selected element in the parent DropDownList.
I tried to do something like this:
foreach(ListItem item in ddlChildren.Items)
{
item.Visible =
}
However, the property Visibledoes not seem to be available here.
Can someone please suggest how I will achieve this functionality?
source
share