473,503 Members | 1,953 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Anyone heard of validatorhookupcontrol?

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

--
Alan Silver
(anything added below this line is nothing to do with me)
Feb 16 '06 #1
2 2151
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: PL****@PeterBlum.com
Creator of "Professional Validation And More" at
http://www.peterblum.com/vam/home.aspx

"Alan Silver" <al*********@nospam.thanx.invalid> wrote in message
news:ne**************@nospamthankyou.spam...
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

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

Feb 16 '06 #2
Thanks Peter, that's exactly what I wanted.

In article <ec*************@TK2MSFTNGP11.phx.gbl>, Peter Blum
<PL****@Blum.info> writes
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: PL****@PeterBlum.com
Creator of "Professional Validation And More" at
http://www.peterblum.com/vam/home.aspx

"Alan Silver" <al*********@nospam.thanx.invalid> wrote in message
news:ne**************@nospamthankyou.spam...
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

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



--
Alan Silver
(anything added below this line is nothing to do with me)
Feb 16 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2070
by: Simon Harvey | last post by:
Hi chaps, Does anyone know if the beast is going to release Visual Tools for office to work with Visual Studio 2002 and not just 2003, or are they quite happy to shaft those that supported them...
162
7070
by: Isaac Grover | last post by:
Hi everyone, Just out of curiosity I recently pointed one of my hand-typed pages at the W3 Validator, and my hand-typed code was just ripped to shreds. Then I pointed some major sites...
1
1302
by: Sergey | last post by:
Hi Just curious if anyone ever heard of NetQuarry. They sell a "enterprise application platform" for .NET. My company is considering buying it and I wanted to know if anybody had any experience...
2
1573
by: gtzpower | last post by:
here's a link: http://thinstall.com/ I want something that allows me to run my .net based apps on locked down pc's at work where we can't install the .net framework. This sounds like it...
4
1077
by: Alan Silver | last post by:
Hello, According to MS's web site, VS 2005 will be coming out "in the first half of 2005", which isn't very helpful. That could be anytime between tomorrow and the end of June. I am interested...
3
1331
by: John B | last post by:
Hi, I'm getting a file not found error - looks like the app is looking for a file called 'fuhnxrfp.dll' or 'fuhnxrfp.exe'. Does anyone know what this file is? I can't find a reference to it...
97
5417
by: Master Programmer | last post by:
An friend insider told me that VB is to be killled off within 18 months. I guess this makes sence now that C# is here. I believe it and am actualy surprised they ever even included it in VS 2003 in...
3
2139
by: DR | last post by:
I heard there is some trick to referencing statics in C# CLR stored procedure without having to mark the assembly as unsafe. Does anyone know this? This is usefull as the case of needing a little...
3
1410
by: DR | last post by:
I heard there is some trick to referencing statics in VB.NET CLR stored procedure without having to mark the assembly as unsafe. Does anyone know this? This is usefull as the case of needing a...
0
7205
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7287
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7348
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7006
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
4685
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3166
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1519
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
744
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
397
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.