Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
9
Reply
Drop down list default name as "select"
Renjith V S
Apr 22 2014 2:50 AM
1.2k
Reply
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.
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
9
)
Next Recommended Forum
putting textbox on a picture
how can implement the desktop application?