C
Chris Kennedy
I want to assign a validation control dynamically. How do I tell it what
control to validate via the controls collection. It seems to want a string
when I use the code below. Regards, Chris.
Controls.Add(New TextBox)
Dim valRequired as New RequiredFieldValidator()
Controls.Add(valrequired)
valrequired.ControltoValidate = Controls(0)
control to validate via the controls collection. It seems to want a string
when I use the code below. Regards, Chris.
Controls.Add(New TextBox)
Dim valRequired as New RequiredFieldValidator()
Controls.Add(valrequired)
valrequired.ControltoValidate = Controls(0)