Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using a 2nd post button
Message
From
24/04/2008 10:07:34
 
General information
Forum:
ASP.NET
Category:
Web forms
Environment versions
Environment:
VB 8.0
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01312816
Message ID:
01312848
Views:
16
>Each button has it's own Click event - you can just hook up a handler to the second button's event, eg.
>
>
><asp:Button runat="server" id="btnSave" Text="Save" onclick="btnSave_Save"></asp:Button>
>
>
>In the codebehind:
>
>
>Protected Sub btnSave_Click(ByVal sender As object, ByVal e As EventArgs)
>' Code to respond to click here
>End Sub
>
Thanks, this gave me an idea of creating a hidden field and using the OnClientClick() event of the button to replace the value with 1 before submitting. Then, on the code behind, I detect if the value is 1 and act accordingly.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Reply
Map
View

Click here to load this message in the networking platform