ASP Valiadator controls are not fired if we use OnClientClick property in button. So we need to fire this validation control inside of OnClientClick Function using Page_ClientValidate().
<script language="javascript">
function validation() {
Page_ClientValidate();
if(Page_IsValid){
//Your CODE HERE
return true;
}
else
{
return Page_IsValid;
}
}
</script>
This function check the page is valid or not. If any of Validator is not valid this function return false.
If you using more than one validation group, you can specify the group name like
Page_ClientValidate(groupname);