null value in combobox

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.
 
A

Anthony Merante

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

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top