HttpServerUtility.Transfer Method
.NET Framework 3.5
Terminates execution of the current page and starts execution of a new page for the current request.
This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.
| Name | Description | |
|---|---|---|
|
Transfer(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. |
|
Transfer(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. |
|
Transfer(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. |
This member is overloaded.
This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.
- 5/25/2010
- Erik Reitan
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.
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.
- 8/19/2008
- Nathawat_N
- 7/21/2009
- rtpHarry