Issue with web user controls + validators.

mike55

Contributor
Joined
Mar 26, 2004
Messages
727
Location
Ireland
Hi,

I have two web user controls on my page, each has its own validators in the form of required field and regular expression validators. All the validators in both web user controls have the "EnableClientScript" property set to "false". The problem that I am experiencing is that when a post-back occurs on one web user control, it causes the validators in the other control to fire off.

Can anyone suggest a possible means of stopping this occuring?

Mike55.
 
If you are using .Net 2 then you could assign a validation group to the controls - controls in the same group trigger validators in the same group only.

If .Net 1 / 1.1 then there isn't any simple built in solution I'm afraid.
 
Back
Top