Dropdownlist Insert?

C

Chip Switzer

This seems like it should be easy but I can't find it anywhere. How do I get
the value also in the following? This sets "Select One" for both Text and
Value and I would like the value to be "0" (as well as the index).

ddlFoo.Items.Insert(0, "Select One")

I think I could eventually get there in a few lines of code, but this should
be simple.

Chip
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,430
Messages
2,571,676
Members
48,796
Latest member
Greg L.

Latest Threads

Top