.NET Framework Class Library
HttpServerUtility..::.Transfer Method

Terminates execution of the current page and starts execution of a new page for the current request.

Overload List

  NameDescription
Public methodTransfer(String)For the current request, terminates execution of the current page and starts execution of a new page by using the specified URL path of the page.
Public methodTransfer(String, Boolean)Terminates execution of the current page and starts execution of a new page by using the specified URL path of the page. Specifies whether to clear the QueryString and Form collections.
Public methodTransfer(IHttpHandler, Boolean)Terminates execution of the current page and starts execution of a new request by using a custom HTTP handler that implements the IHttpHandler interface and specifies whether to clear the QueryString and Form collections.
Top
See Also

Reference

Tags :


Community Content

rtpHarry
what is different from Redirect Command?
what is the difference between HttpServerUtility.Transfer and Document.Redirect

Answer:
The Server.Transfer preserves the current QueryString and Form objects when it passes control to the new page.
The Response.Redirect throws everything out and redirects to a new page.
Tags :

mcm_ham
Note: Session is not available
If you use Server.Transfer then session is not enabled. Does anyone know why or how to enable it again?
Tags :

Page view tracker