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 _
)
[C#]
public void Transfer(
 string path
);
[C++]
public: void Transfer(
 String* path
);
[JScript]
public function Transfer(
   path : String
);

Parameters

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

Remarks

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.

Requirements

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

See Also

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

Show: