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

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -