The difference between Server.Transfer and Response.Redirect in ASP.NET

The difference between Server.Transfer and Response.Redirect in ASP.NET

Server.Transfer processes the page from one page directly to the next page without making a round-trip back to the client’s browser. This way is faster, with a little less overhead on the server. However, it does not update the clients URL history list or current URL.

Response.Redirect, as expected, is used to redirect the user’s browser to another page or site. It does perform a trip back to the client where the client’s browser is actually redirected to the new page. The browser history list is updated to reflect the new address.

Share this post

Comments (24)

  • Anonymous Reply

    thank u for useful info…..but if server.transfer is a better is that means we don’t have to use response.redirect any more?

    May 16, 2008 at 10:42 AM
    • Amr Saafan Reply

      Well, it depends on your case. Because you can’t use query string in Server.Transfer, so this is not the perfect solution after all.

      May 17, 2008 at 11:47 AM
      • Mummy Reply

        you can use query string with server.transfere if you set the preserveForm param to true.
        and I consider 2 functionality is diff. it’s not the same sport :))

        if you are trying to pass an object to the another page. using the httpcontext. you cant use redirect thing.

        also server.transfer can’t send the user to external site.

        simply redirect tells the browser to visit another page.

        May 18, 2009 at 3:49 PM
  • diseño web malaga Reply

    Wonderful website you have here but I was wondering if you knew of any community forums that cover the same topics talked about
    here? I’d really like to be a part of online community
    where I can get responses from other experienced
    individuals that share the same interest. If you have any
    suggestions, please let me know. Appreciate it!

    October 15, 2009 at 7:48 PM
  • carpe Reply

    Greetings from Ohio! I’m bored to death at work so I decided
    to check out your blog on my iphone during lunch break.
    I love the knowledge you provide here and can’t wait to take a look when I get home.
    I’m shocked at how fast your blog loaded on my phone ..
    I’m not even using WIFI, just 3G .. Anyways, very good blog!

    October 16, 2009 at 9:10 PM
  • Juliane Benesch Reply

    Hi, Neat post.

    November 16, 2020 at 10:37 AM
  • Alyssa Escamilla Reply

    Nice post. I used to be checking constantly this blog and I am impressed!
    Very useful information particularly the last section 🙂
    I deal with such information a lot. I was seeking this certain info for a long time.
    Thanks and good luck.

    November 16, 2020 at 5:43 PM
  • Leonor Badham Reply

    We are a group of volunteers and starting a new scheme in our community.
    Your web site provided us with helpful info to work on. You
    have done an impressive task and our whole group shall be thankful
    to you.

    November 19, 2020 at 12:48 PM
  • Val Dent Reply

    you’re really a good webmaster. The site loading speed
    is amazing. It sort of feels that you’re doing any distinctive trick.
    Moreover, The contents are masterpiece. you have performed a wonderful activity on this matter!

    November 20, 2020 at 6:42 AM
  • Carrie Higgins Reply

    I blog quite often and I truly appreciate your
    content. This article has truly peaked my interest.

    I am going to bookmark your blog and keep checking for new
    information about once per week. I subscribed to your RSS feed
    as well.

    November 21, 2020 at 1:02 PM
  • Hassan Garcia Reply

    When I initially left a comment I appear to have clicked
    the -Notify me when new comments are added- checkbox and now
    every time a comment is added I receive 4 emails with the exact same comment.
    Perhaps there is an easy method you are able to remove me from that service?

    November 22, 2020 at 6:14 AM
    • Amr Saafan Reply

      Hey Hassan,

      There is no Notify me checkbox.
      Please send us a screen shot of you are seeing and also a screen shot of the emails you are getting.

      November 23, 2020 at 9:22 AM
  • Lucio Layne Reply

    It’s a pity you don’t have a donate button! I’d certainly donate to this outstanding blog!
    I suppose for now i’ll settle for book-marking and
    adding your RSS feed to my Google account. I look forward
    to new updates and will share this blog with my Facebook group.
    Chat soon!

    November 22, 2020 at 7:36 PM
    • Amr Saafan Reply

      Thank you Lucio. But we decided to make this blog free as a contribution to the software community around the world.

      November 23, 2020 at 1:17 PM
  • Dolores Tapia Reply

    I have been exploring for a little for any high-quality articles or weblog posts on this kind of area .
    Exploring in Yahoo I eventually stumbled upon this web
    site. Studying this information So i’m satisfied
    to exhibit that I have an incredibly good uncanny feeling I discovered exactly what I
    needed. I most undoubtedly will make certain to don?t omit this site and provides it a glance
    on a continuing basis.

    November 23, 2020 at 1:21 PM
  • Franchesca Scully Reply

    I am really loving the theme/design of your website.
    Do you ever run into any web browser compatibility issues?
    A number of my blog audience have complained about my site not operating correctly
    in Explorer but looks great in Opera. Do you have any tips to help fix this issue?

    November 23, 2020 at 11:26 PM
  • Carmen Demers Reply

    Excellent web site. Lots of useful information here.
    I am sending it to a few friends and also sharing it.

    And obviously, thank you in your effort!

    November 25, 2020 at 11:03 PM
  • Philomena Davis Reply

    Hi there! I know this is somewhat off-topic however I had to ask.
    Does running a well-established blog like yours take a large amount of work?
    I’m completely new to running a blog but I do write in my diary everyday.
    I’d like to start a blog so I will be able to share my personal
    experience and feelings online. Please let me
    know if you have any kind of suggestions or tips for new aspiring blog owners.
    Appreciate it!

    November 29, 2020 at 5:08 AM
  • Patricia Franke Reply

    I like the valuable info you provide in your articles.
    I’ll bookmark your blog and check again here regularly.

    I am quite certain I will learn lots of new stuff right here!
    Good luck for the next!

    November 29, 2020 at 11:21 PM
  • Mable Murry Reply

    Way cool! Some extremely valid points! I appreciate you penning this write-up and also
    the rest of the site is also very good.

    December 1, 2020 at 12:31 PM
  • Luka Skeller Reply

    I wanted to thank you for this great read!! I definitely loved every bit of
    it. I have got you book-marked to check out new things
    you post…

    December 1, 2020 at 1:06 PM
  • Genia Mallard Reply

    You should be a part of a contest for one of the finest blogs
    online. I am going to highly recommend this site!

    December 2, 2020 at 11:12 PM
  • Tonia Lenk Reply

    Informative article, just what I wanted to find.

    January 18, 2021 at 5:36 PM
  • Bry Ceandes Reply

    Excellent post. I used to be checking continuously this blog and I am inspired!
    Very helpful info specially the ultimate section 🙂
    I deal with such information a lot. I used to be looking for this certain information for
    a very long time. Thanks and best of luck.

    March 8, 2021 at 3:09 PM

Leave a Reply

Your email address will not be published. Required fields are marked *