Tech
Forums
Jobs
Books
Events
Videos
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
9
Answers
Drop down list default name as "select"
Renjith V S
10y
1.2k
1
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.
Post
Reset
Cancel
Answers (
9
)
Next Recommended Forum
putting textbox on a picture
how can implement the desktop application?