Dropdown list

  • Thread starter Thread starter Andy Sutorius
  • Start date Start date
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
 
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

Back
Top