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 (75)

  • 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

        hi,
        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?
    Cheers!

    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
  • Regan Galea Reply

    Appreciate this post. Let me try it out.

    May 17, 2021 at 6:48 PM
  • Mindy Torode Reply

    You’re so cool! I do not suppose I’ve read through
    something like that before. So good to discover another person with
    a few original thoughts on this topic. Really.. thank you for starting this
    up. This website is one thing that is required on the internet, someone with a little originality!

    May 18, 2021 at 3:02 AM
  • Bryce Corwin Reply

    Hey there, I think your site might be having browser compatibility issues.
    When I look at your blog site in Chrome, it looks fine but when opening in Internet
    Explorer, it has some overlapping. I just wanted to give you a quick heads up!
    Other then that, wonderful blog!

    May 21, 2021 at 1:21 AM
  • Andy Wats Ford Reply

    This post is in fact a nice one it assists new the web viewers, who are
    wishing for blogging.

    May 22, 2021 at 1:43 AM
  • Mei Runyan Reply

    Hello, I enjoy reading through your article.
    I wanted to write a little comment to support you.

    May 23, 2021 at 8:25 AM
  • John Dalrymple Reply

    I think everything published was actually very reasonable.
    But, what about this? suppose you added a little content?
    I ain’t saying your content is not solid., but what
    if you added a headline that makes people want
    more? I mean The difference between Server.Transfer and Response.Redirect
    in ASP.NET | Nile Bits is a little plain. You should peek at Yahoo’s front page and watch how they write article headlines to get
    viewers to open the links. You might try adding a video or a picture or
    two to get people excited about everything’ve got to say.
    Just my opinion, it might bring your blog a little livelier.

    May 23, 2021 at 9:07 PM
  • Wilbur Donovan Reply

    This piece of writing is actually a fastidious one it assists new internet
    people, who are wishing in favor of blogging.

    May 24, 2021 at 6:31 PM
  • Franziska Darrington Reply

    This design is incredible! You definitely know how to keep a reader amused.
    Between your wit and your videos, I was almost moved to start my own blog
    (well, almost…HaHa!) Wonderful job. I really enjoyed what
    you had to say, and more than that, how you presented it.
    Too cool!

    May 25, 2021 at 8:09 AM
  • Aron Glaspie Reply

    Appreciate the recommendation. Let me try it out.

    May 27, 2021 at 3:00 AM
  • Van Brothers Reply

    Hey! Someone in my Myspace group shared this website with
    us so I came to look it over. I’m definitely enjoying the information. I’m book-marking and will be tweeting this to my followers!
    Great blog and wonderful design and style.

    May 27, 2021 at 5:01 AM
  • Gloria DeLoach Reply

    I like it when individuals get together and share opinions.
    Great site, keep it up!

    May 27, 2021 at 11:13 AM
  • Lola Dorris Reply

    Very good write-up. I absolutely love this site.
    Keep writing!

    May 27, 2021 at 5:56 PM
  • Mario Hooper Reply

    You actually make it appear so easy together with your presentation but I in finding
    this topic to be actually one thing that I believe I would by no
    means understand. It kind of feels too complex and very large for me.

    I’m taking a look ahead on your next publish, I will attempt to get
    the grasp of it!

    May 27, 2021 at 7:52 PM
  • Janelle Cornejo Reply

    Woah! I’m really loving the template/theme of this
    website. It’s simple, yet effective. A lot of times it’s
    difficult to get that “perfect balance” between usability
    and visual appeal. I must say you have done a excellent job with this.
    Also, the blog loads extremely quick for me on Chrome.
    Excellent Blog!

    May 28, 2021 at 6:00 PM
  • Leone Bollivar Reply

    An impressive share! I’ve just forwarded this onto a friend who
    has been doing a little research on this. And he in fact bought me breakfast due to the fact
    that I discovered it for him… lol. So let me reword this….
    Thanks for the meal!! But yeah, thanks for spending the time to discuss
    this topic here on your internet site.

    May 29, 2021 at 4:25 AM
  • Angelica Harr Reply

    Greetings! This is my first visit to your blog!
    We are a team of volunteers and starting a new project in a community in the same niche.
    Your blog provided us beneficial information to work
    on. You have done a outstanding job!

    May 31, 2021 at 9:15 AM
  • Chanel Sharkey Reply

    Hi, There’s no doubt that your web site could
    be having internet browser compatibility problems.
    When I look at your site in Safari, it looks fine however when opening in I.E., it’s got some overlapping issues.
    I simply wanted to give you a quick heads up!

    Besides that, fantastic blog!

    June 3, 2021 at 11:29 AM
  • Mirta Eastin Reply

    Hi there I am so happy I found your weblog, I really found you by mistake, while I was looking on Askjeeve for something else, Regardless I am here now
    and would just like to say many thanks for a marvelous post and a all round thrilling blog (I also love the theme/design), I don’t have time to browse it all at
    the moment but I have bookmarked it and
    also included your RSS feeds, so when I have time I will be
    back to read a great deal more, Please do keep up the superb work.

    June 5, 2021 at 2:45 AM
  • Robbin Hutchins Reply

    I’ve been surfing online greater than three hours these days, but I by no means
    discovered any interesting article like yours. It is lovely value
    sufficient for me. Personally, if all site owners and bloggers made excellent content as you did,
    the web will be much more useful than ever before.

    June 6, 2021 at 1:00 PM
  • Julie Farkas Reply

    This is a topic which is near to my heart… Cheers!
    Exactly where are your contact details though?

    June 8, 2021 at 12:43 PM
  • Analisa Haller Reply

    Fascinating blog! Is your theme custom made or did you download it from somewhere?

    A design like yours with a few simple adjustements would really make my blog jump out.
    Please let me know where you got your theme. Many thanks

    June 8, 2021 at 4:15 PM
  • Michelle Medlin Reply

    Aw, this was an incredibly good post. Taking
    the time and actual effort to make a very good article… but
    what can I say… I procrastinate a whole lot and don’t manage to
    get nearly anything done.

    June 8, 2021 at 7:55 PM
  • Tanja Frantar Reply

    This paragraph provides clear idea in support of the new viewers of blogging, that actually how to do
    running a blog.

    June 10, 2021 at 1:32 PM
  • Von Ussery Reply

    It’s remarkable to pay a visit this website and reading the views of all friends concerning this piece of
    writing, while I am also keen of getting experience.

    June 10, 2021 at 11:33 PM
  • Lawrence Trotter Reply

    I think everything said made a great deal of sense.
    However, what about this? what if you were to write a awesome headline?
    I am not suggesting your information isn’t good., but suppose you added
    something that makes people want more? I mean The
    difference between Server.Transfer and Response.Redirect in ASP.NET | Nile Bits is kinda
    plain. You could look at Yahoo’s front page and watch
    how they create article headlines to get viewers to click.
    You might add a related video or a related pic or two to get readers excited about everything’ve got to say.

    In my opinion, it could make your blog a little livelier.

    June 11, 2021 at 1:06 PM
  • Ilene Stjulian Reply

    I was suggested this web site by my cousin. I’m now not certain whether or not this put up is written by means of
    him as nobody else understand such special approximately
    my problem. You are wonderful! Thank you!

    June 11, 2021 at 11:39 PM
  • April Kauffman Reply

    This is a topic that is near to my heart… Many thanks!
    Exactly where are your contact details though?

    June 14, 2021 at 1:47 PM
  • Ilyse Hogue Reply

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

    June 16, 2021 at 6:28 PM
  • Melina Nussbaum Reply

    Howdy! This is my first visit to your blog!
    We are a group of volunteers and starting a new project in a community in the
    same niche. Your blog provided us beneficial information to
    work on. You have done a wonderful job!

    June 17, 2021 at 1:22 AM
  • Rosario Babin Reply

    Hi my friend! I wish to say that this post is amazing, nice written and include almost all important infos.

    I would like to peer more posts like this .

    June 18, 2021 at 4:46 AM
  • Blanche Luft Reply

    Thanks for sharing your thoughts about website.
    Regards

    June 18, 2021 at 4:32 PM
  • Audrey Furneaux Reply

    whoah this weblog is magnificent i really like studying your articles.

    Stay up the great work! You know, lots of individuals are searching round for this information, you can aid them greatly.

    June 18, 2021 at 5:01 PM
  • Rosalinda Mccool Reply

    I every time spent my half an hour to read this blog’s articles or reviews every day along
    with a mug of coffee.

    June 18, 2021 at 10:46 PM
  • Shannon Dame Reply

    Wow! After all I got a blog from where I know how to
    really take useful information regarding my study and knowledge.

    June 19, 2021 at 12:17 AM
  • Christal Grimes Reply

    Your mode of describing all in this paragraph is in fact nice, every one be capable of without difficulty be aware of it, Thanks a lot.

    June 20, 2021 at 2:56 AM
  • Felipe O'sullivan Reply

    Quality articles or reviews is the key to be a focus for the viewers to pay a quick visit the website,
    that’s what this web site is providing.

    June 20, 2021 at 9:16 AM
  • Latoya Mistry Reply

    It’s remarkable to go to see this web page and reading the
    views of all colleagues concerning this paragraph, while I am
    also zealous of getting experience.

    June 21, 2021 at 1:42 PM
  • Ettafalleni Reply

    Attractive part of content. I simply stumbled upon your weblog
    and in accession capital to say that I get actually enjoyed account your weblog posts.
    Anyway I’ll be subscribing in your augment and even I success you access
    persistently rapidly.

    June 23, 2021 at 12:57 AM
  • Estela Enright Reply

    Hello would you mind sharing which blog platform you’re using?
    I’m planning to start my own blog in the near future but I’m having a hard time deciding between BlogEngine/Wordpress/B2evolution and Drupal.
    The reason I ask is because your layout seems different then most blogs and I’m looking for something completely unique.

    P.S Sorry for getting off-topic but I had to ask!

    June 23, 2021 at 4:25 AM
    • Amr Saafan Reply

      Platform we are using is WordPress.

      June 25, 2021 at 7:39 AM
  • Lois Lui Reply

    Hi there! This post couldn’t be written any better! Reading through this post
    reminds me of my old room mate! He always kept chatting about this.

    I will forward this article to him. Fairly certain he will have a
    good read. Thank you for sharing!

    June 25, 2021 at 2:04 AM
  • Isabel Brown Reply

    This design is steller! You most certainly know
    how to keep a reader entertained. Between your wit and
    your videos, I was almost moved to start my own blog
    (well, almost…HaHa!) Fantastic job. I really enjoyed
    what you had to say, and more than that,
    how you presented it. Too cool!

    June 26, 2021 at 1:58 AM
  • Vaughn Barclay Reply

    I like looking through an article that will make people think.
    Also, thanks for allowing me to comment!

    June 26, 2021 at 3:02 AM
  • Faye Henderson Reply

    Its such as you learn my mind! You seem to know a lot approximately this,
    like you wrote the e-book in it or something.
    I believe that you simply can do with some p.c.
    to force the message house a bit, however instead of that, that is great blog.
    A great read. I will certainly be back.

    June 26, 2021 at 9:19 AM
  • Dee Greeves Reply

    I’m extremely impressed with your writing
    skills as well as with the layout on your weblog. Is this a paid theme or did you modify it yourself?
    Anyway keep up the excellent quality writing, it’s
    rare to see a great blog like this one today.

    June 26, 2021 at 1:27 PM
  • Kirby Ybarra Reply

    I’m not that much of a online reader to be honest but your blogs really nice, keep it up!
    I’ll go ahead and bookmark your site to come back later on. Cheers

    June 27, 2021 at 9:35 PM
  • Garry Persse Reply

    Exceptional post however , I was wondering if you
    could write a litte more on this subject? I’d be very grateful
    if you could elaborate a little bit further.
    Thank you!

    June 28, 2021 at 1:07 AM
  • Kathleen Boatman Reply

    What’s up, just wanted to mention, I loved this post.
    It was helpful. Keep on posting!

    June 28, 2021 at 10:25 AM
  • Sammy Howchin Reply

    Post writing is also a excitement, if you be acquainted with after that you can write or else it is difficult to write.

    June 28, 2021 at 7:21 PM
  • Gayle Wilmoth Reply

    This blog was… how do you say it? Relevant!! Finally I have found
    something that helped me. Thanks a lot!

    June 29, 2021 at 12:04 PM
  • Kate Delprat Reply

    Very descriptive post, I enjoyed that bit. Will there be a part 2?

    July 1, 2021 at 5:46 AM

Leave a Reply

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