What's the difference in....

Discussion in 'ASP .Net' started by Goober at christianDOTnet, Jul 27, 2004.

  1. response.redirect and server.transfer?

    I am on a single production server in an application that is both asp.net
    and traditional ASP code.

    In some of the code (that I didn't author), there are some server.transfers
    in which some querystrings are passed along to the new .aspx file.

    If they both do the same thing, is one more advantageous to use than the
    other?

    Thanks,

    SC
     
    Goober at christianDOTnet, Jul 27, 2004
    #1
    1. Advertising

  2. On 7/27/2004 11:32 AM, Goober at christianDOTnet wrote:
    > response.redirect and server.transfer?
    >
    > I am on a single production server in an application that is both asp.net
    > and traditional ASP code.
    >
    > In some of the code (that I didn't author), there are some server.transfers
    > in which some querystrings are passed along to the new .aspx file.
    >
    > If they both do the same thing, is one more advantageous to use than the
    > other?
    >
    > Thanks,
    >
    > SC
    >
    >
    >

    quick, concise explanation:
    http://www.developer.com/net/asp/article.php/3299641

    a couple more comments:
    http://www.csharpfriends.com/Articles/getArticle.aspx?articleID=15


    --
    Craig Deelsnyder
    Microsoft MVP - ASP/ASP.NET
     
    Craig Deelsnyder, Jul 27, 2004
    #2
    1. Advertising

  3. Goober at  christianDOTnet

    Gai Guest

    Response.Redirect() is a client side action, where Server.Transfer() is a
    server side action.
    if you use the second one, the page that you're transfering to will not be
    added to the browser history list, so if the user, later on, uses the "Back"
    browser button he won't see that page.

    If that makes any sense to you.

    "Goober at christianDOTnet" <> wrote in message
    news:eEG5Qd$...
    > response.redirect and server.transfer?
    >
    > I am on a single production server in an application that is both asp.net
    > and traditional ASP code.
    >
    > In some of the code (that I didn't author), there are some

    server.transfers
    > in which some querystrings are passed along to the new .aspx file.
    >
    > If they both do the same thing, is one more advantageous to use than the
    > other?
    >
    > Thanks,
    >
    > SC
    >
    >
    >
     
    Gai, Jul 27, 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. jakk
    Replies:
    4
    Views:
    12,609
  2. Nick Timkovich
    Replies:
    0
    Views:
    84
    Nick Timkovich
    Feb 25, 2014
  3. Skip Montanaro
    Replies:
    0
    Views:
    83
    Skip Montanaro
    Feb 25, 2014
  4. Peter Otten
    Replies:
    1
    Views:
    102
    Mark Lawrence
    Feb 25, 2014
  5. Peter Otten
    Replies:
    0
    Views:
    74
    Peter Otten
    Feb 25, 2014
Loading...

Share This Page