Is it possible to use the onclientclick property of a button to do a clientside check. If the check returns true, then fire the onclick
onclientclick
true
onclick
Yes you can, In onclientClick function call use preventDefault()
preventDefault()
function onclientClickFun(e) { if(!IsValidationSuccess) { e.preventDefault(); } }
OR
function onclientClickFun(e) { if(!IsValidationSuccess) { return false; } }