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

Add items to dropdown list

Status
Not open for further replies.

luckydata

Programmer
Sep 15, 2002
10
0
0
AU
A dropdown list can have two columns, affectionately referred to as the DataTextField and the DataValueField.
I need to be able to add items to both fields in code. When I use ddl.items.add(DatatextField,DataValueField) I get a message suggesting that the add method can only accept one parameter. Can anyone tell me how to add both fields please?

 
forum796 VB.NET
forum855 ASP.NET

should be able to assist you.

___________________________________________________________________
[sub]
The answer to your ??'s may be closer then you think.
Check out Tek-Tips knowledge bank by clicking the FAQ link at the top of the page faq333-3811
[/sub]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top