Drop Down List issue

R

Rob Venable

I've populated a drop down list from a sql query and the drop down list
(select box) looks fine. The issue is... I need to show a blank entry at
the top of the select box. In asp I would just add <option
value=""></option>. Does anyone know how to do it in .Net?

Thanks
Rob
 
R

Rob Venable

Thank you,
I couldn't get it at first because I was assigning a datasource to my
dropdownlist. I've changed it to loop through the .Read() method and
added your suggestion and it works fine.

Thanks again.

Rob
 

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,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top