questions regarding validator controls

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

    questions regarding validator controls

    hi there,

    i've got a form with 2 boxes, "New User" and "Existing User"

    both have got input boxes with required validators, and both have got a
    submit button, but whichever i press, it show the required fields even for
    the other box.

    is there a way around this, other than putting them on 2 separate forms?

    thanks,
    Paul


  • S. Justin Gengo

    #2
    Re: questions regarding validator controls

    Paul,

    While I'm a big fan of client side validation. I think the simplest thing
    for you to do here would be to just put a label on the form and validate
    this yourself server side.

    If you really want to get it to work client side and server side then you
    could write a custom validator.

    Another possibility would be to use a javascript attached to each button's
    click that set's the other text box's validator to disabled.

    --
    Sincerely,

    S. Justin Gengo, MCP
    Web Developer / Programmer



    "Out of chaos comes order."
    Nietzsche
    "Milsnips" <milsnips@hotma il.com> wrote in message
    news:u2GHNqU4FH A.1596@tk2msftn gp13.phx.gbl...[color=blue]
    > hi there,
    >
    > i've got a form with 2 boxes, "New User" and "Existing User"
    >
    > both have got input boxes with required validators, and both have got a
    > submit button, but whichever i press, it show the required fields even for
    > the other box.
    >
    > is there a way around this, other than putting them on 2 separate forms?
    >
    > thanks,
    > Paul
    >[/color]


    Comment

    • Peter Blum

      #3
      Re: questions regarding validator controls

      See this article for the topic "Several buttons associated with their own
      validators". http://aspalliance.com/699#Page4

      --- Peter Blum

      Email: PLBlum@PeterBlu m.com
      Creator of "Profession al Validation And More" at


      "Milsnips" <milsnips@hotma il.com> wrote in message
      news:u2GHNqU4FH A.1596@tk2msftn gp13.phx.gbl...[color=blue]
      > hi there,
      >
      > i've got a form with 2 boxes, "New User" and "Existing User"
      >
      > both have got input boxes with required validators, and both have got a
      > submit button, but whichever i press, it show the required fields even for
      > the other box.
      >
      > is there a way around this, other than putting them on 2 separate forms?
      >
      > thanks,
      > Paul
      >[/color]


      Comment

      Working...