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

databind to a dropdown list

Status
Not open for further replies.

dazza12345

Programmer
Nov 25, 2005
35
GB
Hi all, what im looking to do is create a data function that will traverse through a database and collect values of 1 column in the database for a certain user (i.e. WHERE UserID = 1).

Has any1 got an example data function that I could use, that will output the colum of data that I require into an array then databind this array to the drop down list.

Cheers
 
Just use a SQL statement with the WHERE clause that you have specified above. You can loop through the results by using one of the methods from faq855-5662.


____________________________________________________________

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