Probably you must be checking the validation
onClientClick
of button control. This executes before server side event. But when you check the validation, you need to make sure the execution is stopped by setting
return false
properly.
something like:
onClientClick = if(InValid(someEmail)) return false;
function InValid(checkEmail)
{
}