Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

redirect a page automatically

Tags:

c#

asp.net

how to automatically redirect an ASP.NET page to another after 1 minute using c# code.

like image 452
Karthik Malla Avatar asked Mar 06 '11 12:03

Karthik Malla


People also ask

How do I automatically redirect a page to another page?

It happens due to page redirection. To redirect from an HTML page, use the META Tag. With this, use the http-equiv attribute to provide an HTTP header for the value of the content attribute. The value of the content is the number of seconds; you want the page to redirect after.

What is auto redirection?

Auto-Redirects--A Stealth Attack With Lasting Effect The user opens a publisher site in a browser window. Malicious code is deployed through an unsecured ad slot. A pop-up appears, covering the page's content–or, if it's on mobile, covering most of the screen.

How do I automatically redirect a page after 5 seconds?

To redirect a webpage after 5 seconds, use the setInterval() method to set the time interval. Add the webpage in window. location. href object.


1 Answers

You can use something like this:

<meta http-equiv="Refresh" content="60; url=http://your.new/url/here" />

The "60" is the time in seconds to wait before page redirect.

like image 122
Laur Ivan Avatar answered Oct 04 '22 15:10

Laur Ivan