DataSet ds= new DataSet();
ds.ReadXml(Server.MapPath("BindXMLToDropDown.xml"));
DropDownList1.DataSource = ds;
DropDownList1.DataTextField = "category";
DropDownList1.DataValueField = "lastUpdated";
DropDownList1.DataBind();
ds.ReadXml(Server.MapPath("BindXMLToDropDown.xml"));
DropDownList1.DataSource = ds;
DropDownList1.DataTextField = "category";
DropDownList1.DataValueField = "lastUpdated";
DropDownList1.DataBind();
No comments:
Post a Comment