This project has moved. For the latest updates, please go here.

Multiple Validation Summarys


Steps to replicate
Add two asp panels with a a textbox, requiredfieldvalidator and a validation summary.
Add modalpopupextenders for each panel.
Create a asp button that programmatically displays the popups due to a postback.
Watch the javascript break
A work around is to simply remove the validation summary out of the first panel. If you have more then one modal popup, then only one panel (and for whatever reason it MUST be the last one) can only have a validation summary .

file attachments


plbyrd wrote Apr 29, 2009 at 6:19 PM

This is a real problem. I have three user controls that are hidden using CSS, not the Visible property of the controls (this is necessary for various reasons). Each has it's own validation summary. This is a really big problem because now not all of the buttons work reliably after getting the javascript error.

wrote Apr 29, 2009 at 6:19 PM

wrote Feb 14, 2013 at 8:11 PM

wrote Mar 21, 2014 at 12:05 PM

Can you please upload an example code where you get the JavaScript error?