My goal is to display Validation Messages in the Validation Summary and also show them in a separate popup. One approach I am considering is overriding the WebForm_OnSubmit method.
function WebForm_OnSubmit() {
if (typeof (ValidatorOnSubmit) == "function" && ValidatorOnSubmit() == false) {
showErrorPopup();
return false;
}
return true;
}
function showErrorPopup()
{
//Retrieve the validation message text and insert it into the error popup div.
}
Would it be recommended to proceed with this method, or are there other alternatives I should explore?