protected void ClassDropDownList_SelectedIndexChanged(object sender, EventArgs e) { if (ClassDropDownList.SelectedValue.Selected) { string myXMLfile = Server.MapPath("~/OrgList.xml"); DataSet NAME_DATASET = new DataSet(); NAME_DATASET.ReadXml(myXMLfile); NameDropDownList.DataSource = NAME_DATASET; NameDropDownList.DataTextField = "NAME"; NameDropDownList.DataValueField = "ID"; NameDropDownList.DataBind(); } }
ClassDropDownList
System.Web.UI.WebControls.DropDownList
SelectedValue
System.String
Selected
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)