CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2003
    Location
    Sweden
    Posts
    381

    AutoRefresh an aspx-page

    How can I set a ’timer’ that my aspx-page will refresh every 30 seconds?
    ...and justice for all

  2. #2
    Join Date
    Jun 2004
    Location
    Kashmir, India
    Posts
    6,808

    Re: AutoRefresh an aspx-page

    There are multiple ways of doing this. Adding a simple meta tag in the aspx file can refresh the page
    PHP Code:
    <meta http-equiv="refresh" content="30"
    Adding a header using the response object would also help
    Code:
    Response.AppendHeader("Refresh", "5");

  3. #3
    Join Date
    Oct 2003
    Location
    Sweden
    Posts
    381

    Re: AutoRefresh an aspx-page

    Perfect!
    Code:
    Response.AddHeader("Refresh", "30");
    ...made it for me!
    ...and justice for all

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured