Christopher Green

Now with more Vitamin C!
posts - 41, comments - 30, trackbacks - 1

Server.Transfer instead of Response.Redirect

When transferring the user from one page to another in your web application use Server.Transfer() instead of Response.Redirect().  This saves a round-trip as ASP.NET transfers to and renders the new aspx page in the same request.

Print | posted on Thursday, January 19, 2006 12:57 PM |

Feedback

Gravatar

# re: Server.Transfer instead of Response.Redirect


It is an option for reducing server resource usage and maintaining the request/form between pages but dependent on your requirements it might not be appropriate - eg you can't use Server.Transfer to send the user to an external site, and it maintains the original URL in the browser which can be confusing for users and make apps difficult to debug
1/20/2006 10:10 AM | Mary
Gravatar

# re: Server.Transfer instead of Response.Redirect

Fair enough Mary. As I said its only for transfering between aspx pages within the same web application. And even then its not appropriate in all situations.
1/20/2006 11:18 AM | Chris
Comments have been closed on this topic.

Powered by: