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

ComboBox?

Status
Not open for further replies.

CSstudent

Technical User
Dec 30, 2003
1
IN
Hi,

I'm totally new for asp. So I may ask a silly question. How to create a dropdown list and how to get the value that users choose and insert back to DB?

Thank.
 
CS.

1. You would first create the dropdown list.
2. On the Page_Open event, you would populate it; either using, say, a "reader" through an open database connection, or just add the items if there are only a few.
3. On the SelectedIndexChanged event of the dropbox just add code to "Insert" the value back into your database table.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top