Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / February 2006

Tip: Looking for answers? Try searching our database.

Anyone heard of validatorhookupcontrol?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Alan Silver - 16 Feb 2006 10:26 GMT
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)


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.