null value in combobox

  • Thread starter Thread starter Vaidas Gudas
  • Start date Start date
V

Vaidas Gudas

how to insert Null value and "Please select..." text to combobox, which have
datasource from like sqldatasource.
In ASP.NET 2.0

thanks.
 
You can use the Control.Items.Insert(0, new ListItem("Please Select...",
""))

HTH,
Tony
 

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