how to auto redirect a page?

B

blu3g85

how to redirect a page? as in after a few sec, the page will auto
direct u to another page.
 
S

Saravana [MVP]

One way for refreshing the page after certain interval is by using meta
tag - Refresh. This tag specifies a delay in seconds before the browser
automatically reloads the document. Optionally, specifies an alternative URL
to load. Example
<META HTTP-EQUIV="Refresh"
CONTENT="3;URL=http://www.some.org/some.html">

In ASP.NET, you can add headers in code behind using this method.

Response.AppendHeader("Refresh", "10; URL=name.aspx")


For further details refer this article,
http://www.extremeexperts.com/Net/Articles/RedirectingPageAfterSessionTimeou
t.aspx
--
Saravana
Microsoft MVP - ASP.NET
www.extremeexperts.com



blu3g85 said:
how to redirect a page? as in after a few sec, the page will auto
direct u to another page.



----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption
=---
 
C

coollzh

may be you can using "Thread.Current.sleep(3000)" then ,you can redirect ot
another page
but , this will consume you resource
blu3g85 said:
how to redirect a page? as in after a few sec, the page will auto
direct u to another page.



----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption
=---
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top