validating dynamically created textboxes

davidrobin

Freshman
Joined
Jun 24, 2003
Messages
41
I am dynamically creating textboxes and for each textbox a custom validator control.
How do I link the validator control to the textbox so it can be Validated.

Thanks
 
The easiest way is to create the validator at the same time as the textbox.

The validators have a property "ControlToValidate", that's where you would pass it the newly created textbox.
 
Back
Top