I'm using programmatically creating dropdowns and got one unexpected problem: i cant get the value of the the selected item in dropdownlist. WebService works perfectly and all dropdowns are updating good. The source code is:
DropDownList ddl = (DropDownList)up.FindControl("tab_").FindControl("ddlroom_");
string val = ddl.SelectedItem.Value; - on this command i have got an error
Object reference is not set to an istance of an object
What should i do? Is it any samples how to get selected value from CascadingDropDown?