asp.net.ph

Response.Redirect Method ( String, Boolean )

System.Web Namespace   HttpResponse Class


Redirects a client to a new URL. Specifies the new URL and whether execution of the current page should terminate.

[ VB ]
Overloads Public Sub Redirect ( _
   ByVal url As String, _
   ByVal endResponse As Boolean _
)

[ C# ]
public void Redirect (
   string url,
   bool endResponse
);

[ C++ ]
public: void Redirect (
   String* url,
   bool endResponse
);

[ JScript ]
public function Redirect (
   url : String,
   endResponse : Boolean
);

Parameters

url
The target location.
endResponse
Indicates whether execution of the current page should terminate.

Exceptions


Exception Type Condition
HttpException Occurs when Header have already been sent for the current page.

See Also

HttpResponse Members   HttpResponse.Redirect Overload List Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph