I just want to add some client side (JQuery Javascript) validation in a web user control. I put an OnClientClick handler and the function gets called. BUT, even if I return
oddly enough this worked for me:
OnClientClick="javascript:SubmitTableData(); return CanSubmit();"
set the return value submit with the first function call:
function CanSubmit() { return submit; }
Hope this helps someone.