If you just want the button to perform some Javascript function rather than submitting the entire form, use either:
<input id="myBtn1" class="txtUpdateContract" type="button" onclick="doFunction();" value="Click" />
or:
<asp:button id="myBtn2" runat="server" onclientclick="doFunction();return false;" text="Click" usesubmitbehavior="false" />