Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Input Type: Button!
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00827525
Message ID:
00827830
Vues:
15
This message has been marked as the solution to the initial question of the thread.
If the "onclick=" handler return false, the submit is not done.
<input type=submit onclick="return confirm('Submit this form?');">
HTH

>Hi, there.
>
>In traditional ASP I used to use input type=button everytime I wanted a button to act like a "button", not a "submit" button. For example, when I wanted to run some code at the client-side without posting the page back to the server.
>
>In ASP.NET, when I use the button Web Control, it's always rendering the button as a submit. Can I use this same control to render the button as a "button" type, or should I use a HTML Control?
>
>TIA
If we exchange an apple, we both get an apple.
But if we exchange an idea, we both get 2 ideas, cool...


Gérald Santerre
Independant programmer - internet or intranet stuff - always looking for contracts big or small :)
http://www.siteintranet.qc.ca
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform