---
title: "Response.Redirect() & Server.Transfer() in ASP.Net"  
description: "TheRedirectmethod causes the browser to redirect the client to a different URL.Server.Transferacts as an efficient replacement for theResponse.Redirec"  
author: "Sumit Kesarwani"  
published: 2013-05-10  
updated: 2014-09-18  
canonical: https://www.mindstick.com/blog/498/response-redirect-server-transfer-in-asp-dot-net  
category: "asp.net"  
tags: ["asp.net"]  
reading_time: 2 minutes  

---

# Response.Redirect() & Server.Transfer() in ASP.Net

The [Redirect](http://msdn.microsoft.com/en-us/library/ms524309(v=vs.90).aspx) method causes the browser to redirect the client to a different URL.[Server.Transfer](http://msdn.microsoft.com/en-us/library/ms525800(v=vs.90).aspx) acts as an efficient [replacement](https://www.mindstick.com/forum/160229/timing-belt-replacement-cost-guide-everything-you-need-to-know) for the [Response.Redirect](http://msdn.microsoft.com/en-us/library/ms524309(v=vs.90).aspx) method. [Response.Redirect](http://msdn.microsoft.com/en-us/library/ms524309(v=vs.90).aspx) specifies to the browser to request a different page. Because a redirect forces a new page request, the browser makes two requests to the Web server, so the Web server handles an extra request. IIS 5.0 introduced a new function, [Server.Transfer](http://msdn.microsoft.com/en-us/library/ms525800(v=vs.90).aspx), which transfers execution to a different ASP page on the server. This avoids the extra request, resulting in better overall [system performance](https://www.mindstick.com/forum/157853/what-is-system-performance-analysis-how-is-it-used-in-system-software), as well as a better [user experience](https://www.mindstick.com/articles/12731/the-importance-of-feedback-to-the-user-experience).

Say you have 2 pages (Page1 and Page2) where Page1 redirects to Page2.In case of

**1. Response.Redirect()** **:** [Search Engine](https://www.mindstick.com/services/search-engine-optimization) will take this [redirection](https://www.mindstick.com/forum/436/url-redirection) asTemporary(Status 301) and always keep Page1 in its cache.

**2. Server.Transfer()** **:** Search Engine will be unaware of any redirection been took place (Status 200) and will keep Page1 to its database. It will think Page1 is producing the output response of Page2.

##### When to use:

1. Response.Redirect() is perfect when your page is temporarily changed and will again be reverted to original within a short span of time.

2. Server.Transfer() when you are thinking of keeping the page for ever, and to let search engine unaware of this redirection.

---

Original Source: https://www.mindstick.com/blog/498/response-redirect-server-transfer-in-asp-dot-net

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
