Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Show image dynamically

Show image dynamically

Scheduled Pinned Locked Moved ASP.NET
databasequestion
5 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    Vijayitsb
    wrote on last edited by
    #1

    Hi, I am showing image dynamacally.I got image path from database. After I changed the image in that path with same name but its showing old one.once i click refresh button of browser its showing updated image. (I think first time browser getting the image from temporary internet file).Do u have any Idea ?

    Thank & Regards Vijay s

    A E A N 4 Replies Last reply
    0
    • V Vijayitsb

      Hi, I am showing image dynamacally.I got image path from database. After I changed the image in that path with same name but its showing old one.once i click refresh button of browser its showing updated image. (I think first time browser getting the image from temporary internet file).Do u have any Idea ?

      Thank & Regards Vijay s

      A Offline
      A Offline
      Ashish Sehajpal
      wrote on last edited by
      #2

      that is the problem with everyone.... browsers do show pages from their cache.... one need to make it sure that browser is set to check updates of webpages on every visit.... only the it brings newer versions of pages on every time

      Ashish Sehajpal

      1 Reply Last reply
      0
      • V Vijayitsb

        Hi, I am showing image dynamacally.I got image path from database. After I changed the image in that path with same name but its showing old one.once i click refresh button of browser its showing updated image. (I think first time browser getting the image from temporary internet file).Do u have any Idea ?

        Thank & Regards Vijay s

        E Offline
        E Offline
        eyeseetee
        wrote on last edited by
        #3

        Well of course you have to refresh the browser how else is it going to check the image?? If you dont refresh the browser you are just viewing the page in the same state you left it

        1 Reply Last reply
        0
        • V Vijayitsb

          Hi, I am showing image dynamacally.I got image path from database. After I changed the image in that path with same name but its showing old one.once i click refresh button of browser its showing updated image. (I think first time browser getting the image from temporary internet file).Do u have any Idea ?

          Thank & Regards Vijay s

          A Offline
          A Offline
          Abhijit Jana
          wrote on last edited by
          #4

          yes. you have to refresh that page after changing the image path in DB

          Best Regards ----------------- Abhijit Jana "Success is Journey it's not a destination"

          1 Reply Last reply
          0
          • V Vijayitsb

            Hi, I am showing image dynamacally.I got image path from database. After I changed the image in that path with same name but its showing old one.once i click refresh button of browser its showing updated image. (I think first time browser getting the image from temporary internet file).Do u have any Idea ?

            Thank & Regards Vijay s

            N Offline
            N Offline
            N a v a n e e t h
            wrote on last edited by
            #5

            Vijayitsb wrote:

            After I changed the image in that path with same name but its showing old one.once i click refresh button of browser its showing updated image.

            Hope you are not changing image path directly through query analyzer. Browsers will cache the images depends on the URL. So if you can append some timestamp/random values to the end of URL, it won't be cached and when new image uploaded, it will show that immediately. Assume initially your image path is something like /somedirectory/someimage.jpg You can change that to /somedirectory/someimage.jpg?random=append some random value here avoid caching Note : This will stop browser from caching the image. So if this page is visited frequently, browser has to load image each time.

            All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia How to use google | Ask smart questions

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups