Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ASP 2.0 How to set dropdownlist.text=""

Status
Not open for further replies.

joggi

Programmer
Nov 8, 2006
44
YU
I have search web form with dropdownlist which is bound to datatable. When page is loaded I want dropdownlist.text to be empty because it is optional parameter for search.
When I set dropdownlist.text="" I got error.
How to solve this?
 
Add a new ListItem to the DropDownList via the Items.Add method with the relevant Text and Value properties


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top