Click here to Skip to main content
15,896,912 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I've got some CustomValidators inside a GridView, inside a custom control, inside an UpdatePanel. Everything is working correctly up to the point of postback: my client-side validation flags the fields immediately, and they all stay flagged until they are either fixed or the user clicks the submit button on the parent page. When the user submits, I then do server-side validation, manually setting the IsValid property of every validation control; that code is executing correctly. When postback completes, the CustomValidators that are not in the grid are correctly flagged, the RequiredFieldValidators that are inside the grid are correctly flagged, and all the errors for those controls are correctly displayed in my ValidationSummary, but the CustomValidators inside the grid are not flagged, and their errors are missing. Any ideas?

EDIT: As a workaround, I added a handler for the endRequest in the javascript, and put in this line:
JavaScript
Page_ClientValidate("validationGroupMain");
That's working ... any issues with that approach, or solutions for the original issue? Thanks
Posted
Updated 17-May-13 9:37am
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900