Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Input Type: Button!
Message
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00827525
Message ID:
00827830
Views:
16
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform