ASP Redirect Method

The ASP Redirect Method is used to redirect the client to a different URL. It is a predefined method of the Response Object.

Syntax:

Response.Redirect URL




Parameter Values: This method accepts a single parameter as mentioned above and described below:

  • URL: It defines a Uniform resource locator which represents the browser is redirected to.

Return value: This method does not return any value. 

Example: Below code redirects the user to geeksforgeeks website.

<%
Response.Redirect "https://www.GeelsforGeeks.org.in"
%>

My Personal Notes arrow_drop_up

Check out this Author's contributed articles.

If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.


Article Tags :

Be the First to upvote.


Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.