Problem with groupvalidator

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
 
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.
Sorry ... I mean ValidationGroup property
 
M

Milosz Skalecki [MCAD]

Hi Andrew,

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

HTH
 
A

Andrew2

They are correctly setup. I check it tons of time. I don't know what
to think.

Andrea
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top