I found a way to test modalpopup without postback.
In ModalPopupExtender, I installed OnOkScript in a function, for example ValidateBeforePostBack (), and then in the function that I call Page_ClientValidate for the validation group that I want, run the validation and if it fails, save the display of the modal message. If it passes, I call __doPostBack .
function ValidateBeforePostBack(){ Page_ClientValidate('MyValidationGroupName'); if (Page_IsValid) { __doPostBack('',''); } else { $find('mpeBehaviourID').show(); } }
Hope this helps.
Fandango68 Jun 09 '16 at 1:07 on 2016-06-09 01:07
source share