Problem with groupvalidator

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Andrew2

    #1

    Problem with groupvalidator

    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
  • Andrew2

    #2
    Re: Problem with groupvalidator

    On May 27, 10:09 am, Andrew2 <andrea.moro.we ...@gmail.comwr ote:
    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
    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

    Comment

    • =?Utf-8?B?TWlsb3N6IFNrYWxlY2tpIFtNQ0FEXQ==?=

      #3
      Re: Problem with groupvalidator

      Hi Andrew,

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

      HTH
      --
      Milosz


      "Andrew2" wrote:
      On May 27, 10:09 am, Andrew2 <andrea.moro.we ...@gmail.comwr ote:
      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
      >
      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
      >
      >

      Comment

      • Andrew2

        #4
        Re: Problem with groupvalidator

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

        Andrea

        Comment

        Working...