Assuming your function is called yourJsFunction
, I think you can just use onclick="return !!yourJsFunction();"
on the input element, like this:
<input type="submit" id="sumbit" value="Sign up" runat="server" onclick="return !!yourJsFunction();"
onserverclick="sumbit_ServerClick2" class="submitbutton"/>
Use !!
in front of the function call to force a boolean value.
--
For ASP.NET Button use onClientClick="return !!yourJsFunction();"
.