Response.redirect does not redirect from .aspx page

Discussion in 'ASP .Net' started by =?Utf-8?B?VHJveQ==?=, Oct 18, 2004.

  1. I am calling Response.redirect(strURL, false) from the page_load event in an
    ..aspx.

    My goal is simply to display an https://somewhere.com/ in the current page.

    On execution I get the .aspx page without any redirect. The url displays my
    ..aspx path. Any help is greatly appreciated.

    Thanks
    =?Utf-8?B?VHJveQ==?=, Oct 18, 2004
    #1
    1. Advertising

  2. Troy wrote:
    > I am calling Response.redirect(strURL, false) from the page_load event in an
    > .aspx.
    >
    > On execution I get the .aspx page without any redirect. The url displays my
    > .aspx path. Any help is greatly appreciated.


    Are you sure that your Response.Redirect() call is getting executed? If
    you set a breakpoint there and run the page through the debugger, are
    you seeing that line being hit?

    --

    Scott Mitchell

    http://www.4GuysFromRolla.com

    * When you think ASP.NET, think 4GuysFromRolla.com!
    Scott Mitchell [MVP], Oct 18, 2004
    #2
    1. Advertising

  3. =?Utf-8?B?VHJveQ==?=

    bruce barker Guest

    if you call Response.Redirect(strURL, false) , it just adds the redirect
    header to the response. if you later clear headers it will not work.


    -- bruce (sqlwork.com)



    "Troy" <> wrote in message
    news:...
    > I am calling Response.redirect(strURL, false) from the page_load event in

    an
    > .aspx.
    >
    > My goal is simply to display an https://somewhere.com/ in the current

    page.
    >
    > On execution I get the .aspx page without any redirect. The url displays

    my
    > .aspx path. Any help is greatly appreciated.
    >
    > Thanks
    bruce barker, Oct 18, 2004
    #3
  4. =?Utf-8?B?VHJveQ==?=

    Srowe1975

    Joined:
    Oct 15, 2008
    Messages:
    3
    I am on a page qith a queery string address of
    http : // scm-web/ newintranet/ signcert/ CertDetail.aspx? SONum=810354&SOItem=3& DieNum=RD0018%20%20%20%20%20%20&AT=6061T6511%20%20& Desc=ROD%202.500%20+/-.007& CertDesc=ASTM-B221-06%20 Stencil&Spec1=400& Spec1Desc=400%20%20%20%20%20& Spec2=& Spec2Desc=& Spec3=& Spec3Desc=& CustName=YARDE%20METALS%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20& TruckID=091902
    yet when I click my "Approve" button, it should redirect to http: //scm-web /newintranet /signcert /Default.aspx? TruckID=091902

    but it does not.

    Instead it keeps the first url with all of the query string values
    However it does enter the code for the page Default.aspx, and enters the page load and checks to see if postback and it executes my method

    I am using VB.NET
    Last edited: Oct 15, 2008
    Srowe1975, Oct 15, 2008
    #4
    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. Replies:
    1
    Views:
    828
    Juan T. Llibre
    Feb 8, 2006
  2. André
    Replies:
    3
    Views:
    1,887
    André
    Dec 1, 2006
  3. Replies:
    0
    Views:
    387
  4. gabriel
    Replies:
    2
    Views:
    601
    gabriel
    Aug 3, 2005
  5. Sal
    Replies:
    1
    Views:
    378
Loading...

Share This Page