Select One...
-
Hellow Everybody ddlCategory (drop down list category) data is coming from database. I want to add Select One.. on the top of my ddlCategory then data will be come from database. How can I do it? Waiting For Your Reply
Sarfarj Ahmed
-
Hellow Everybody ddlCategory (drop down list category) data is coming from database. I want to add Select One.. on the top of my ddlCategory then data will be come from database. How can I do it? Waiting For Your Reply
Sarfarj Ahmed
comboName.Items.Insert(0, New ListItem("Select", -1))
-
Hellow Everybody ddlCategory (drop down list category) data is coming from database. I want to add Select One.. on the top of my ddlCategory then data will be come from database. How can I do it? Waiting For Your Reply
Sarfarj Ahmed
-
comboName.Items.Insert(0, New ListItem("Select", -1))
-
Hellow Everybody ddlCategory (drop down list category) data is coming from database. I want to add Select One.. on the top of my ddlCategory then data will be come from database. How can I do it? Waiting For Your Reply
Sarfarj Ahmed
hi may be this will give you much clear Idea, try this.... DropDownList1.Items.Add(New ListItem("--Select-One--", "")) For iCount = 0 To dataTable.rows.Count - 1 DropDownList1.Items.Add(New ListItem(dt.row(i)(0).tostring(),"") Next It might contain some syntax errors as I am writing it without using IDE.:-D
-
Insert a new item to the list after doing a Databind of your Database Items.
DropDownList1.Items.Insert(0, New ListItem("Text","Value")
Regards
- J O N -
John Prabhu wrote:
DropDownList1.Items.Insert(0, New ListItem("Text","Value")
Missing closing tag ")".:)
-
John Prabhu wrote:
DropDownList1.Items.Insert(0, New ListItem("Text","Value")
Missing closing tag ")".:)
-
Insert a new item to the list after doing a Databind of your Database Items.
DropDownList1.Items.Insert(0, New ListItem("Text","Value")
Regards
- J O N -
Dear John Thanks Lot It does work and Im going to give you maximum point Thanks Again for Your Help
Sarfarj Ahmed
-
Dear John Thanks Lot It does work and Im going to give you maximum point Thanks Again for Your Help
Sarfarj Ahmed