M
misiek
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
smallUserControlGroup.
Also I have another user control called bigUserControl, in which I use
smallUserControl. BigUserControl also has some validator, which has
ValidationGroup property set to bigUserControlGroup.
The problem is that I want to fire both validations at once
(smallUserControlGroup and bigUserControlGroup). 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 SmallUserControl) 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 ValidationGroups for one control
e.g. button, but it doesn't work.
Is there some other solution?
Thanks in advance
I have following problem:
I have some user control called smallUserContrl, in which I have two
RangeValidator controls. I set their ValidationGroup property to
smallUserControlGroup.
Also I have another user control called bigUserControl, in which I use
smallUserControl. BigUserControl also has some validator, which has
ValidationGroup property set to bigUserControlGroup.
The problem is that I want to fire both validations at once
(smallUserControlGroup and bigUserControlGroup). 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 SmallUserControl) 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 ValidationGroups for one control
e.g. button, but it doesn't work.
Is there some other solution?
Thanks in advance