G Guest Apr 15, 2005 #1 I have a dropdown bound to database. I need to add Select one to the first index of drop down list. How can i do this? Thanks Manny
I have a dropdown bound to database. I need to add Select one to the first index of drop down list. How can i do this? Thanks Manny
G Guest Apr 15, 2005 #2 After you have populated your dropdown use something like the following (assuming your dropdown is ddlList) ListItem li = new ListItem("Text","Value"); ddlList.Items.Insert(0,li); ddlList.SelectedIndex = 0; This should Work Tasos
After you have populated your dropdown use something like the following (assuming your dropdown is ddlList) ListItem li = new ListItem("Text","Value"); ddlList.Items.Insert(0,li); ddlList.SelectedIndex = 0; This should Work Tasos
L Lucas Tam Apr 16, 2005 #3 I have a dropdown bound to database. I need to add Select one to the first index of drop down list. How can i do this? Click to expand... Dim li as listitem = new listitem("MyText", Value) ddl.items.add(li) : )
I have a dropdown bound to database. I need to add Select one to the first index of drop down list. How can i do this? Click to expand... Dim li as listitem = new listitem("MyText", Value) ddl.items.add(li) : )