var allowPostback = RuleValidation();
alert(“Sorry, we are unable to update this record …”);
//todo ajax or client object model call to check the constraints
If the custom rule validation function returns true the update is submitted. If the function returns false, we let the user know that there was a problem, and he/she can then make the necessary corrections.