Required Field Validators and Response.Redirect

Discussion in 'ASP .Net' started by Rob H, Jan 5, 2004.

  1. Rob H

    Rob H Guest

    Simple question, I have a webform that uses required
    field validators, I also have a button that links back to
    that forms homepage. If the user wants to stop what
    he/she is doing and clicks that link, the required field
    validators all work as intended, but does not allow the
    redirect.

    Any possible workaround ?

    Thanks,
    Robert
     
    Rob H, Jan 5, 2004
    #1
    1. Advertisements

  2. Rob H

    Hans Kesting Guest

    "Rob H" <> wrote in message
    news:082b01c3d3a0$4d735ce0$...
    >
    > Simple question, I have a webform that uses required
    > field validators, I also have a button that links back to
    > that forms homepage. If the user wants to stop what
    > he/she is doing and clicks that link, the required field
    > validators all work as intended, but does not allow the
    > redirect.
    >
    > Any possible workaround ?
    >
    > Thanks,
    > Robert
    >


    Set RequiresValidation of that link to false


    Hans Kesting
     
    Hans Kesting, Jan 5, 2004
    #2
    1. Advertisements

  3. Rob,

    In the design window click on the button in question and then view the
    button's properties. Set the property "CausesValidation" to false and the
    button will function without triggering the validators on the page.

    --
    Sincerely,

    S. Justin Gengo, MCP
    Web Developer / Programmer

    Free code library at:
    www.aboutfortunate.com

    "Out of chaos comes order."
    Nietzche


    "Rob H" <> wrote in message
    news:082b01c3d3a0$4d735ce0$...
    >
    > Simple question, I have a webform that uses required
    > field validators, I also have a button that links back to
    > that forms homepage. If the user wants to stop what
    > he/she is doing and clicks that link, the required field
    > validators all work as intended, but does not allow the
    > redirect.
    >
    > Any possible workaround ?
    >
    > Thanks,
    > Robert
    >
     
    S. Justin Gengo, Jan 5, 2004
    #3
  4. Rob H

    RobertH Guest

    THANK YOU!
     
    RobertH, Jan 6, 2004
    #4
  5. Rob H

    sandeep Guest

    hi rob make causesvalidation=false

    Rob H wrote:

    > Simple question, I have a webform that uses required
    > field validators, I also have a button that links back to
    > that forms homepage. If the user wants to stop what
    > he/she is doing and clicks that link, the required field
    > validators all work as intended, but does not allow the
    > redirect.
    >
    > Any possible workaround ?
    >
    > Thanks,
    > Robert
     
    sandeep, Jan 7, 2004
    #5
    1. Advertisements

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Eric Sabine

    Required field validators

    Eric Sabine, Nov 19, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    395
    Stefano Mostarda
    Nov 19, 2003
  2. Big E

    Required Field Validators

    Big E, Jul 21, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    411
    John Saunders
    Jul 21, 2004
  3. Ratman
    Replies:
    0
    Views:
    873
    Ratman
    Sep 14, 2004
  4. anony

    Required field validators

    anony, Sep 23, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    443
    anony
    Sep 24, 2004
  5. Robin
    Replies:
    1
    Views:
    415
    ajamrozek
    Feb 3, 2005
  6. savvy
    Replies:
    0
    Views:
    401
    savvy
    Jun 15, 2006
  7. Sal
    Replies:
    1
    Views:
    1,644
  8. jr
    Replies:
    3
    Views:
    667
Loading...