Go Back   CodingForums.com > :: Server side development > ASP.NET

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 02-17-2011, 06:45 PM   PM User | #1
eirikr
New to the CF scene

 
Join Date: May 2010
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
eirikr is an unknown quantity at this point
dropdown menu in gridview

i have a dropdown menu in a gridview. Dropdown menu items are "Confirmed, Cancelled, No Show".
I also have 2 tables: Appointment and CancelNoshow

<asp: GridView...
<asp: TemplateField HeaderText="STATUS"...
<EditItemTemplate>
<asp: DropDownList id="ddl_stat"...>
</EditItemTemplate>
</asp:TemplateField>
</asp: GridView>

When i click on Edit button, the dropdown menu is populated with an Update button.
How can i do something like,
1. when i select Confirmed, it will update Status column in table Appointment.
2. when i select either Cancelled or No Show, a record will be deleted from Appointment table and it will be inserted in to CancelNoshow table.

Please Help
eirikr is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 05:56 PM.


Advertisement
Log in to turn off these ads.