Hi all.
I have following problem:
I have some user control called smallUserContrl , in which I have two
RangeValidator controls. I set their ValidationGroup property to
smallUserContro lGroup.
Also I have another user control called bigUserControl, in which I use
smallUserContro l. BigUserControl also has some validator, which has
ValidationGroup property set to bigUserControlG roup.
The problem is that I want to fire both validations at once
(smallUserContr olGroup and bigUserControlG roup). Of course I could set
ValidationGroup property in both user controls to the same value, but
it is not a good solution. Imagine such situation: I have some page and
put there BigUserControl (which includes SmallUserContro l) and also
another SmalUserControl . In such situation every validator control on
my page will be fired and that is not good, because maybe I would like
to fire validators only from bigUserControl.
Solution for this might be setting few ValidationGroup s for one control
e.g. button, but it doesn't work.
Is there some other solution?
Thanks in advance