Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Post
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
0
Reply
Howto insert first row in dropdown list before databind()
Brett Brown
Mar 29 2004 4:35 PM
1.7k
Reply
Want to be able to have the first value in a dropdown list display "(select one)". I am doing this currently before my databind: ListItem li = new ListItem(); li.Value = ""; li.Text = "(select one)"; dropdownlist.Items.Add(li); When the databind is called: dropdownlist.databind(); My first row is overwritten or lost. How could I keep "(select one)" and still do a databind? brett
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
0
)
Next Recommended Forum
Help with Update and Merge
Data Access for a "mdb" file using a web form