D
David Krussow
1. Can validation controls validate more than one control at a time? E.g., a
RequiredFieldValidator control requiring that that each of 5 textboxes has
some content?
2. Can validation controls by dynamically associated with validated controls
at runtime?
My situation is this - I'm dynamically adding multiple instances of various
controls to a page - and want to validate each one. Specifically, based on
runtime conditions, the page will let the user enter from 1 to 12 address
entries - each comprised of the usual first/last name, city, street, zip
text boxes, as well as a couple of check boxes per address. While I could
certainly do the validation on the server side with custom code, I'd like to
leverage the client-side functionality enabled by the ASP.NET validatin
controls (and ideally not bloat the client-side JavaScript unnecessarily).
Any suggestions are greatly appreciated.
RequiredFieldValidator control requiring that that each of 5 textboxes has
some content?
2. Can validation controls by dynamically associated with validated controls
at runtime?
My situation is this - I'm dynamically adding multiple instances of various
controls to a page - and want to validate each one. Specifically, based on
runtime conditions, the page will let the user enter from 1 to 12 address
entries - each comprised of the usual first/last name, city, street, zip
text boxes, as well as a couple of check boxes per address. While I could
certainly do the validation on the server side with custom code, I'd like to
leverage the client-side functionality enabled by the ASP.NET validatin
controls (and ideally not bloat the client-side JavaScript unnecessarily).
Any suggestions are greatly appreciated.