Hi
I have an asp.net visual basic website and I use a master page
Now on one of the pages that inherits from the master page I have a form.
I was told not to have any form tages on this page but what kind of button should I have at the end of it?
I did this ...
<asp:button id="btnSubmit" runat="server" text="Continue" onsubmit="return CheckPage()"></asp:button>
and it does submit to itself (it even correclty checks some required field validators) but it doesn't call the javascript that i have on my page.
<script language="javascript" type="text/javascript">
function CheckPage()
{
alert("checking page")
return false;
}
Is my javascript correct?
Can I cancel the submit in this way?
Thanks
Start Free Trial