asp validation controls is not working while OnClientclick function fired

  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>

Job of Page_ClientValidate() 


        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);