By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,987 Members | 1,592 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,987 IT Pros & Developers. It's quick & easy.

validator controls and disabled controls

P: n/a
Hi there,

If a control is disabled (enabled = false), will the validator controls associated with it automatically know not to carry out validation?

I have a page with a bunch of controls and depending on what is passed in through the querystring, I disable some of those controls in my code-behind. However, my validator controls still seem to be trying to validate the disabled controls.

Cheers :)

Nov 18 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
The validator control will attempt to validate a disabled control.

You can disable both the control and the validator control.

Tommy,

"Dune" <an*******@discussions.microsoft.com> wrote in message news:<FF**********************************@microso ft.com>...
Hi there,

If a control is disabled (enabled = false), will the validator controls associated with it automatically know not to carry out validation?

I have a page with a bunch of controls and depending on what is passed in through the querystring, I disable some of those controls in my code-behind. However, my validator controls still seem to be trying to validate the disabled controls.

Cheers :)

Nov 18 '05 #2

P: n/a
This is one of those many limitations of Microsoft's validators that forces
you to create the validator from scratch. I have build a commercial
replacement to Microsoft's validators called Professional Validation And
More (http://www.peterblum.com/vam/home.aspx). Each of my 22 validators
includes a new property, Enabler, that you specify rules to enable and
disable the validator automatically. It works fully on the client side.

--- Peter Blum
www.PeterBlum.com
Email: PL****@PeterBlum.com
Creator of "Professional Validation And More" at
http://www.peterblum.com/vam/home.aspx

"Tommy" <We**********@Hotmail.com> wrote in message
news:a8**************************@posting.google.c om...
The validator control will attempt to validate a disabled control.

You can disable both the control and the validator control.

Tommy,

"Dune" <an*******@discussions.microsoft.com> wrote in message

news:<FF**********************************@microso ft.com>...
Hi there,

If a control is disabled (enabled = false), will the validator controls associated with it automatically know not to carry out validation?
I have a page with a bunch of controls and depending on what is passed in through the querystring, I disable some of those controls in my
code-behind. However, my validator controls still seem to be trying to
validate the disabled controls.
Cheers :)

Nov 18 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.