c# - Populate dropdown based on other dropdown in Postback -
i have 2 multiselect dropdowns , 1 has bind based on other.
public void populatestatus() { string status=ddlstatus.text; ddlname.datasource = spobj.sp_name(status); ddlname.datatextfield = "status"; ddlname.datavaluefield = "status"; ddlname.databind(); } foreach (radcomboboxitem itm in ddlstatus.items) { itm.checked = true; } foreach (radcomboboxitem itm in ddlname.items) { itm.checked = true; }
all above code called in postback.but issue not able capture ddlstatus.text; in populatestatus() method.
can suggest ideas on how achieve this?
try ddlstatus.selecteditem.text
instead.
Comments
Post a Comment