Results 1 to 3 of 3
  1. #1
    manik's Avatar
    manik is offline Om Shanti!
    Join Date
    Apr 2008
    Location
    Boston, MA
    Posts
    13,232
    Thanks
    745
    Thanked 729 Times in 564 Posts
    Blog Entries
    4
    Feedback Score
    4 (100%)

    Default Delayed Redirect in Asp .Net

    Delayed Redirect in Asp .Net

    If you like your asp .net page to redirect after x seconds, here are some options. Examples are in C#.

    Option 1:
    HtmlMeta equiv = new HtmlMeta();
    equiv.HttpEquiv = "refresh";
    equiv.Content = "5; url= somepage.aspx";
    Header.Controls.Add(equiv);

    Option 2:
    Page.Header.Controls.Add(new LiteralControl("<meta http-equiv='refresh' content='5; url=somepage.aspx'/>"));

    Option 3:
    Response.AddHeader("REFRESH", "5;URL=somepage.aspx");
    Free Classified Ads & BUSINESS/PROFESSIONAL SOCIAL NETWORK


  2. The Following User Says Thank You to manik For This Useful Post:

    gym.prathap (01-11-2013)

  3. #2
    gym.prathap is offline Freshman
    Join Date
    Oct 2012
    Location
    chennai
    Posts
    13
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Feedback Score
    0

    Default

    Delayed redirect is not a google friendly.

  4. #3
    Modster is offline Freshman
    Join Date
    Apr 2008
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Feedback Score
    0

    Default

    Quote Originally Posted by gym.prathap View Post
    Delayed redirect is not a google friendly.
    True, if you're redirecting a page you moved but if they're helpful for redirecting from your 404.aspx page to your homepage.

Similar Threads

  1. Delayed sound output
    By slanluc in forum JavaScript & AJAX
    Replies: 0
    Last Post: 09-17-2011, 02:51 AM
  2. How to redirect non www url to www ?
    By Logicspice in forum Search Engine Optimization
    Replies: 1
    Last Post: 03-24-2011, 01:46 AM
  3. 301 redirect?
    By sarita in forum Web Development - Programming & Coding
    Replies: 3
    Last Post: 12-28-2009, 07:19 AM
  4. Windows 7 Beta Download Delayed
    By briscoe.reich in forum General Business
    Replies: 11
    Last Post: 01-11-2009, 08:13 PM
  5. FireFox 3.1 Beta Release Delayed
    By manik in forum General Business
    Replies: 8
    Last Post: 09-25-2008, 10:09 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Partners: BOSTON WEB DEVELOPER, LLC   |   WEBCOSMO CLASSIFIEDS