O
Owen
Hi,
I have a custom control which comprises a label and a text input box. I add
one of these to my web form and call it "MyTextControl".
I am trying to havea RegularExpressionValidator which validates the text
input portion.
However, whenever I set the "ControlToValidate" property to "MyTextControl",
I get an exception.
Control 'MyTextControl' referenced by the ControlToValidate property of
'MyTextControlValidator' cannot be validated.
I just don't understand what the problem is. All the properties seem to be
correct, there are no typos or anything. But it doesn't like me setting the
ControlToValidate property to my custom control.
What am I missing? (examples in VB.net please)
Cheers
Owen
PS. replies cc'd via email appreciated.
(e-mail address removed)
I have a custom control which comprises a label and a text input box. I add
one of these to my web form and call it "MyTextControl".
I am trying to havea RegularExpressionValidator which validates the text
input portion.
However, whenever I set the "ControlToValidate" property to "MyTextControl",
I get an exception.
Control 'MyTextControl' referenced by the ControlToValidate property of
'MyTextControlValidator' cannot be validated.
I just don't understand what the problem is. All the properties seem to be
correct, there are no typos or anything. But it doesn't like me setting the
ControlToValidate property to my custom control.
What am I missing? (examples in VB.net please)
Cheers
Owen
PS. replies cc'd via email appreciated.
(e-mail address removed)