Last post Sep 12, 2010 07:15 PM by BFarley65
Sep 07, 2010 06:11 PM|BFarley65|LINK
I have a form that, originally, contained only dynamic controls. Validation worked perfectly, all in one spot.
Today I changed three of the controls to cascading dropdown lists, two of them being required fields.
After adding a RequiredFieldValidator for the two required fields, it's as though I have two separate validation events:
1. Dynamic field validation - any errors show up in validation summary, and after all are resolved, no longer appear
2. Required field validation - do not appear in validation summary until after all dynamic fields are validated
A user could press submit, and be alerted of one or more validation errors from the dynamic fields. Then, after resolving all those, the user would THEN see the RequiredFieldValidator messages in the validation summary. That would be understandably frustrating.
Aside from using non-dynamic validation & RequiredFieldValidator for each field ... is there any way to have one validation sequence?
Hope this makes sense.
Sep 07, 2010 09:52 PM|joshyvjoseph|LINK
Are you setting ValidationGroup same for your controls?
If you want to get it fired togerther, set same value for validationGroup for dynamic controls and validation controls.
Sep 12, 2010 07:15 PM|BFarley65|LINK
Thank you! In my haste to learn advanced techniques, I am sometimes overlooking the basics.