Hi Gabriel,
Are you sure your syntax is correct? For an <asp:Button> you need to use the OnClientClick attribute as OnClick is the back end event handler. Also, you shouldn't add the Javascript: prefix (for onlick or OnClientClick).
If that is set up correctly and it still submits, there may be a javascript error occuring in your validation function. When an error is thrown, the whole onclick event stops immediately, i.e. the return false doesn't get reached, and so the form submits as normal.
Of course, there may also be a logical error somewhere within validation which is returning true when it shouldn't be.
HTH
Phil
|