asp.net.ph

Response.Redirect Method

System.Web Namespace   HttpResponse Class


Redirects a client to a new URL.

Overload List

1. Redirects a client to a new URL and specifies the new URL.

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


Example

The following example forces an unconditional redirection to another Web site.

NOTE: This example shows how to use one of the overloaded versions of Redirect. For other examples that might be available, see the individual overload topics.

[ VB ]
Response.Redirect ( "http://www.microsoft.com/gohere/look.htm" )

[ C# ]
Response.Redirect ( "http://www.microsoft.com/gohere/look.htm" );
See Also

HttpResponse Members Skip Navigation Links


Previous page Back to top Next page

Check out related books at Amazon

© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

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