I’ve made an ASP.NET web form that uses the standard ASP.NET validation. I’d like to make the error summary show up in a jQuery UI Modal Message as well as below the actual form.
Is it possible to execute the script if the validation finds an error?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You could hijack or override the ASP.net page validation function. This removes the need for an extra CustomValidator.
Here’s a description of how to accomplish this.
Keep the validation summary in a hidden
div, like Mike suggested.Then in your overridden function, call the original function to do the actual validation and display that
divas the modal window.