Blank space in a drop down lst

R

Rob Venable

Hi,
I've populated a dropdownlist with data coming from a database and that
works fine but that select box on my form is not a mandatory field and I
need an empty space at the top of the select box in order for the user
to not have to select anything. Is there a property I can set or does
anyone know how to do this?

Any help would be appreciated.

Thanks
Rob
 
R

Randy Webb

Rob said:
Hi,
I've populated a dropdownlist with data coming from a database and that
works fine but that select box on my form is not a mandatory field and I
need an empty space at the top of the select box in order for the user
to not have to select anything. Is there a property I can set or does
anyone know how to do this?

Any help would be appreciated.

<option value="Not Chosen">&nbsp;</option>
 
R

Rob Venable

Sorry I forgot to mention it's an ASP.net control. How can I fit that
into a <asp:dropdownlist.../> control?

Rob
 
M

Michael Winter

Sorry I forgot to mention it's an ASP.net control. How can I fit that
into a <asp:dropdownlist.../> control?

If this is an ASP question, might I suggest you try asking it in an ASP
newsgroup. At best, this was a HTML topic to begin with.

Try:

microsoft.public.dotnet.framework.aspnet
microsoft.public.inetserver.asp.general

Mike
 

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
473,774
Messages
2,569,599
Members
45,175
Latest member
Vinay Kumar_ Nevatia
Top