System.Web Namespace HttpServerUtility Class
Terminates execution of the current page and begins execution of a new page.
1. Terminates execution of the current page and begins execution of a new page using the specified URL path to the page.
2. Terminates execution of the current page and begins execution of a new page using the specified URL path to the page. Specifies whether to clear the QueryString and Form collections.
The following example executes a new page in the same directory as the current page.
NOTE: This example shows how to use one of the overloaded versions of Transfer. For other examples that might be available, see the individual overload topics.
[ VB ]
Server.Transfer ( "Logon.aspx" )
[ C# ]
Server.Transfer ( "Logon.aspx" );
HttpServerUtility Members