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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to check if a string is already in dropdownlist collection

Status
Not open for further replies.

StylizIT

Programmer
Dec 4, 2003
62
NL
Hi people, I have the following problem. I'm filling a dropdownlist in a asp . net form with data from a database.
How can I check if the item that's being added doesn't already exist in the drop downlist item collection?

thanks in advance

You can better regret that you have done something than regret the fact you done nothing
 
ok, I found this standard feature of .net:
ddlSubcontract.Items.FindByText(myreader2.GetString(0)

I think that awnsers my question;)

You can better regret that you have done something than regret the fact you done nothing
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top