redirection

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

    redirection

    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.Redire ct("NewPass.asp x")
    3. Problem lies in NewPass.aspx - How do I get back to default.aspx?
    Response.Redire ct("default.asp x") does nothing.

    Thanks,

    AJ


  • Tee

    #2
    Re: redirection

    Hi AJ,

    Try put a breakpoint at the line Response.Redire ct("default.asp x") 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" <ajones@kvmhc.o rg> wrote in message
    news:10e8t027km var3f@corp.supe rnews.com...[color=blue]
    > 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.Redire ct("NewPass.asp x")
    > 3. Problem lies in NewPass.aspx - How do I get back to default.aspx?
    > Response.Redire ct("default.asp x") does nothing.
    >
    > Thanks,
    >
    > AJ
    >
    >[/color]


    Comment

    • Andrew Jones

      #3
      Re: redirection

      Thanks -

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

      AJ


      "Tee" <thy@streamyx.c om> wrote in message
      news:uHSA9f$XEH A.3044@TK2MSFTN GP09.phx.gbl...[color=blue]
      > Hi AJ,
      >
      > Try put a breakpoint at the line Response.Redire ct("default.asp x") and see
      > if this line really got executed. If it didn't stop at the breakpoint,[/color]
      then[color=blue]
      > it is your program flow problem.
      >
      > Thanks,
      > Tee
      >
      >
      > "Andrew Jones" <ajones@kvmhc.o rg> wrote in message
      > news:10e8t027km var3f@corp.supe rnews.com...[color=green]
      > > 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[/color][/color]
      Page_Load[color=blue][color=green]
      > > if ( New Password Needed )
      > > Response.Redire ct("NewPass.asp x")
      > > 3. Problem lies in NewPass.aspx - How do I get back to default.aspx?
      > > Response.Redire ct("default.asp x") does nothing.
      > >
      > > Thanks,
      > >
      > > AJ
      > >
      > >[/color]
      >
      >[/color]


      Comment

      Working...