Dropdown list

A

Andy Sutorius

I have created a dropdown which is bound to a table. I need for the drop
down list to have a blank in the first/top slot with a value of "0" instead
of the first record of the table. In classic asp you would hard code an html
option prior to the ado looping.

Thanks

Andy
 
N

Neo

after databinding ,you can insert a listitem to ddl.
ddl.items.insert(0,new listitem("","0"))
 

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