I want to redirect from one URL to another:
http://female.deals.com/
http://male.deals.com/
How can I achieve that with the URL changing to the new URL in the browser and with a page going straight to the new URL without going to the old URL and making a refresh?
I looked through some scripts on the Internet and they didn’t work, I also don’t know ASP classic. So I am struggling to make that redirect work.
this is the correct command - after you make asp page runs on your site ! Response.Redirect ("Account/login.aspx"); will redirect to new page so check you give proper path to redirect or not.
The RedirectToAction method is used to redirect a request in ASP.NET Core from one URL to another. This can be used to redirect based on some condition. The method is part of the Controllerbase class so it’s directly available for use in the controller class.
JavaScript Number toString() Method Improve Article Save Article Like Article ASP Redirect Method Last Updated :19 Aug, 2020 The ASP Redirect Methodis used to redirect the client to a different URL. It is a predefined method of the Response Object. Syntax: Response.Redirect URL
The LocalRedirect method is similar to the Redirect method in that it is used to redirect a request in ASP.NET Core from one URL to another. This can be used to redirect based on some condition. The method is part of the Controllerbase class so it’s directly available for use in the controller class.
<%
Response.Redirect "http://www.sitename.com"
%>
And plus for "all" the querystrings browser url has:
<%
Response.Redirect "http://www.sitename.com/?" & Request.QueryString
%>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With