Hello,
I was reading an MSDN article on validation, and it mentioned the
validatorhookupcontrol client side API as enabling you to hook up more
than one control to a validator.
I just checked the SDK, and couldn't find such an API. I then searched
MSDN and MSDN2 and only found one reference to it, from the article I
had just read.
Anyone know anything about this? Was it in a beta and then dropped?
Is there any way to hook up two controls to one validator? I have been
looking for this for some time and thought I'd struck gold!!
TIA

Signature
Alan Silver
(anything added below this line is nothing to do with me)
Peter Blum - 16 Feb 2006 16:45 GMT
If you only want one additional control to hookup, the CompareValidator has
an infrastructure that we can take advantage of. It needs to handle the
ControlToCompare property.
So on your validator, do this:
Validator1.Attributes.Add("controlhookup", OtherTextBox.ClientID)
(Be sure to use lowercase on "controlhookup".)
--- Peter Blum
www.PeterBlum.com
Email: PLBlum@PeterBlum.com
Creator of "Professional Validation And More" at
http://www.peterblum.com/vam/home.aspx
> Hello,
>
[quoted text clipped - 12 lines]
>
> TIA
Alan Silver - 16 Feb 2006 17:15 GMT
Thanks Peter, that's exactly what I wanted.
>If you only want one additional control to hookup, the CompareValidator has
>an infrastructure that we can take advantage of. It needs to handle the
[quoted text clipped - 30 lines]
>> Alan Silver
>> (anything added below this line is nothing to do with me)

Signature
Alan Silver
(anything added below this line is nothing to do with me)