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