Issue with web user controls + validators.

mike55

Well-known member
Joined
Mar 26, 2004
Messages
726
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 isnt any simple built in solution Im afraid.
 


Write your reply...
Back
Top