This documentation is archived and is not being maintained.

HttpServerUtility.Transfer Method (String)

.NET Framework 1.1

For the current request, terminates execution of the current page and begins execution of a new page using the specified URL path to the page.

[Visual Basic]
Overloads Public Sub Transfer( _
   ByVal path As String _
public void Transfer(
 string path
public: void Transfer(
 String* path
public function Transfer(
   path : String


The URL path of the new page on the server to execute.


The page transferred to should be another .aspx page. For instance, a transfer to an .asp or .asmx page is not valid.

Transfer calls End which raises a ThreadAbortException exception upon completion.


Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family

See Also

HttpServerUtility Class | HttpServerUtility Members | System.Web Namespace | HttpServerUtility.Transfer Overload List