Renjith V S

Renjith V S

  • NA
  • 317
  • 63.7k

Drop down list default name as "select"

Apr 22 2014 2:50 AM
Hey,
       I have lots of drop down list in my project . Here I need use "select" on page load to the drop down list and also when I could not select anything from the list and press submit button, a null value should be send to the data base. Below is my code:
ddlCountry.Items.Insert(0, new ListItem(string.Empty, string.Empty));
ddlCountry.SelectedIndex = 0;
 
In this a blank is shown in drop down list, I need "select" word on that instead. 
 

Answers (9)