Author: maximusmd | Posted on: 12/7/2010 6:42:18 PM | Views : 411

Hi all,
I would like to add a Title such as "--Select your city" to my DropDownList. So it would look something like:
--Select your city
All
Dallas
San Francisco
etc...
Here is my code:
protected void ddlJobCodes_DataBound(object sender, EventArgs e) { //add Title here if (ddlJobCodes.Items.Count > 0) { ddlJobCodes.Items.Insert(0, new ListItem("All", "-1")); } } So before I fee the Control with the cities from the database, I need to add the title first.
How do I do that?
Thanks!
 
...

Go to the complete details ...