redirection

Discussion in 'ASP .Net' started by Andrew Jones, Jul 1, 2004.

  1. Andrew Jones

    Andrew Jones Guest

    I'm struggling with page redirection.
    Here are the steps

    1. forms authentication to authenticate user.
    2. when system returns to base page I have the following code in Page_Load
    if ( New Password Needed )
    Response.Redirect("NewPass.aspx")
    3. Problem lies in NewPass.aspx - How do I get back to default.aspx?
    Response.Redirect("default.aspx") does nothing.

    Thanks,

    AJ
     
    Andrew Jones, Jul 1, 2004
    #1
    1. Advertising

  2. Andrew Jones

    Tee Guest

    Hi AJ,

    Try put a breakpoint at the line Response.Redirect("default.aspx") and see
    if this line really got executed. If it didn't stop at the breakpoint, then
    it is your program flow problem.

    Thanks,
    Tee


    "Andrew Jones" <> wrote in message
    news:...
    > I'm struggling with page redirection.
    > Here are the steps
    >
    > 1. forms authentication to authenticate user.
    > 2. when system returns to base page I have the following code in Page_Load
    > if ( New Password Needed )
    > Response.Redirect("NewPass.aspx")
    > 3. Problem lies in NewPass.aspx - How do I get back to default.aspx?
    > Response.Redirect("default.aspx") does nothing.
    >
    > Thanks,
    >
    > AJ
    >
    >
     
    Tee, Jul 2, 2004
    #2
    1. Advertising

  3. Andrew Jones

    Andrew Jones Guest

    Thanks -

    The Response.Redirect line is getting executed, but the newPass page is just
    coming back up.

    AJ


    "Tee" <> wrote in message
    news:uHSA9f$...
    > Hi AJ,
    >
    > Try put a breakpoint at the line Response.Redirect("default.aspx") and see
    > if this line really got executed. If it didn't stop at the breakpoint,

    then
    > it is your program flow problem.
    >
    > Thanks,
    > Tee
    >
    >
    > "Andrew Jones" <> wrote in message
    > news:...
    > > I'm struggling with page redirection.
    > > Here are the steps
    > >
    > > 1. forms authentication to authenticate user.
    > > 2. when system returns to base page I have the following code in

    Page_Load
    > > if ( New Password Needed )
    > > Response.Redirect("NewPass.aspx")
    > > 3. Problem lies in NewPass.aspx - How do I get back to default.aspx?
    > > Response.Redirect("default.aspx") does nothing.
    > >
    > > Thanks,
    > >
    > > AJ
    > >
    > >

    >
    >
     
    Andrew Jones, Jul 2, 2004
    #3
    1. Advertising

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. MadHatter

    input redirection

    MadHatter, Oct 14, 2003, in forum: Perl
    Replies:
    6
    Views:
    696
    MadHatter
    Oct 16, 2003
  2. S
    Replies:
    1
    Views:
    820
  3. Matt
    Replies:
    0
    Views:
    309
  4. headware

    controlling redirection within frames

    headware, Aug 5, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    332
    headware
    Aug 5, 2003
  5. Ravikanth[MVP]

    Redirection pronblem

    Ravikanth[MVP], Aug 11, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    315
    Platino
    Aug 11, 2003
Loading...

Share This Page