Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using a 2nd post button
Message
De
24/04/2008 10:07:34
 
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires Web
Versions des environnements
Environment:
VB 8.0
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01312816
Message ID:
01312848
Vues:
17
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform