force refresh

Discussion in 'ASP .Net' started by brian, Nov 12, 2003.

  1. brian

    brian Guest

    I have code that runs once a day to change an image on a
    page. I am having a caching problem because the new
    image doesn't show. I need to press ctrl + F5 to force a
    refresh. Is there code I can place in the page to do
    this for me. I am assuming it would go in the html code.

    Thanks
     
    brian, Nov 12, 2003
    #1
    1. Advertising

  2. brian

    Cliff Harris Guest

    Just tell the page not to cache on the client machine. You can do this
    using the @OutputCache directive in your aspx page. For information check
    the following MSDN article
    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpgenref/html/cpconOutputCache.asp

    HTH
    -Cliff

    "brian" <> wrote in message
    news:057701c3a926$d87518f0$...
    > I have code that runs once a day to change an image on a
    > page. I am having a caching problem because the new
    > image doesn't show. I need to press ctrl + F5 to force a
    > refresh. Is there code I can place in the page to do
    > this for me. I am assuming it would go in the html code.
    >
    > Thanks
     
    Cliff Harris, Nov 12, 2003
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Marco Maroni

    Force image refresh

    Marco Maroni, Jul 21, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    5,579
    Ray Dixon [MVP]
    Jul 21, 2003
  2. qqq
    Replies:
    4
    Views:
    16,678
    toddbailey
    Apr 24, 2009
  3. Selden McCabe

    Force browser to refresh?

    Selden McCabe, Dec 23, 2004, in forum: ASP .Net
    Replies:
    5
    Views:
    10,083
    Selden McCabe
    Dec 24, 2004
  4. Kevin Spencer

    Force Refresh

    Kevin Spencer, Jul 1, 2005, in forum: ASP .Net
    Replies:
    2
    Views:
    1,818
    Chris Kennedy
    Jul 2, 2005
  5. batista
    Replies:
    4
    Views:
    1,250
    batista
    Oct 20, 2005
Loading...

Share This Page