DropDownlist1.DataSource = ds;
DropDownlist1.DataTextField = "Name";
DropDownlist1.DataValueField = "ID";
DropDownlist1.DataBind();
ListItem li = new ListItem("--- Select ----", "-1");
DropDownlist1.Items.Insert(0, li);
Monday, September 20, 2010
Code Behind Binding of Dropdown
Posted by
codeguru
at
11:34 PM
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment