Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / February 2006

Tip: Looking for answers? Try searching our database.

Drop-down-list- use to update database

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mayte - 16 Feb 2006 20:23 GMT
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.
Li-fan Chen - 16 Feb 2006 20:27 GMT
Hi Mayte,

Event handler on the DDL update event.

Best personal regards,
-- Li-fan

Signature

Li-fan Chen
Software analyst/developer, Entrepreneur
Markham, Ontario, Canada

> How can I do this?
> Choices are
[quoted text clipped - 7 lines]
> *NOTE: I may have to use different items than Monkey, Banana, Gilligan- so
> work with me here.
Li-fan Chen - 16 Feb 2006 20:33 GMT
Hi Mayte,

Update event is too vague, try the SelectedIndexChanged event.

Best personal regards,
-- Li-fan
Signature

Li-fan Chen
Software analyst/developer, Entrepreneur
Markham, Ontario, Canada

> Hi Mayte,
>
[quoted text clipped - 14 lines]
>> *NOTE: I may have to use different items than Monkey, Banana, Gilligan-
>> so work with me here.
Peter Bromberg [C# MVP] - 16 Feb 2006 20:34 GMT
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

Signature

Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com

> How can I do this?
> Choices are
[quoted text clipped - 7 lines]
> *NOTE: I may have to use different items than Monkey, Banana, Gilligan- so
> work with me here.
Mayte - 16 Feb 2006 20:41 GMT
Thank you.

> Mayte,
> If the control has its Autopostback property set, then in its
[quoted text clipped - 16 lines]
>> so
>> work with me here.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.