Problem with groupvalidator

  • Thread starter Thread starter Andrew2
  • Start date Start date
A

Andrew2

Hi guys

I've a little problem with the groupvalidator opition. It's intended
for grouping a set of form field and validators (custom or not) to be
validated against the form submission, leaving different
groupvalidator's field out of the verification process.

What I did was create a user control - simple one - where I placed a
texbox with a button to postback input to a search page, with
groupvalidator set for both object to A.

Then I've on a page where I use the control above another set of
textbox and option within a button and validator all with the
groupvalidator set to B.

What's happening.

If I press button for group A, the logic works fine. The validator
checks only the group A, but on the group B, also the a group A
validation also occur. I'm not able to figure out what the matter is.
Any idea?

Thank for the help provided.
Andrea
 
Hi guys

I've a little problem with the groupvalidator opition. It's intended
for grouping a set of form field and validators (custom or not) to be
validated against the form submission, leaving different
groupvalidator's field out of the verification process.

What I did was create a user control - simple one - where I placed a
texbox with a button to postback input to a search page, with
groupvalidator set for both object to A.

Then I've on a page where I use the control above another set of
textbox and option within a button and validator all with the
groupvalidator set to B.
Sorry ... I mean ValidationGroup property
 
Hi Andrew,

Make sure Group B, has got the same ValidationGroup (including Button B)

HTH
 
Back
Top