function TestValidation() { //This is executed after your Validation if (Page_IsValid) { //Validation is successful $('#Panel1').hide(); $('#loadingPanel').show(); } else { //Validation Failed } }