Drop-down-list- use to update database

  • Thread starter Thread starter Mayte
  • Start date Start date
M

Mayte

How can I do this?
Choices are

Monkey
Banana
Gilligan

How do I get the control to update the database with the user's choice.

*NOTE: I may have to use different items than Monkey, Banana, Gilligan- so
work with me here.
 
Hi Mayte,

Event handler on the DDL update event.

Best personal regards,
-- Li-fan
 
Hi Mayte,

Update event is too vague, try the SelectedIndexChanged event.

Best personal regards,
-- Li-fan
 
Mayte,
If the control has its Autopostback property set, then in its
SelectedIndexChanged eventhandler you would get the SelectedValue and pass
this as a Parameter to the stored procedure or Sql command text , connect to
your database, and run the command.
Peter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top