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. Image Control again showing same file?

Image Control again showing same file?

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netsysadminhelpquestion
2 Posts 2 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.
  • M Offline
    M Offline
    MudkiSekhon
    wrote on last edited by
    #1

    I am developing an application in ASP.NET 1.1. on one page I allow the user to upload and delete the files to the server. When I delete the file, I physically delete the file from the location. Then I again prompt the user to load a new file but I save the file with the same name the earlier image file had been saved. The problem is that when I again upload the page through Response.Redirect after uploading, it is showing the same image it was showing before deletion whereas in that location on server, there is another image. How my view of the image in the Image Control will change when a new picture has come. Please give me any suggestion. All your suggestion are welcome. Thanks in advance

    Thanks, Sandeep S. Sekhon

    M 1 Reply Last reply
    0
    • M MudkiSekhon

      I am developing an application in ASP.NET 1.1. on one page I allow the user to upload and delete the files to the server. When I delete the file, I physically delete the file from the location. Then I again prompt the user to load a new file but I save the file with the same name the earlier image file had been saved. The problem is that when I again upload the page through Response.Redirect after uploading, it is showing the same image it was showing before deletion whereas in that location on server, there is another image. How my view of the image in the Image Control will change when a new picture has come. Please give me any suggestion. All your suggestion are welcome. Thanks in advance

      Thanks, Sandeep S. Sekhon

      M Offline
      M Offline
      minhpc_bk
      wrote on last edited by
      #2

      Looks like the image is cached. Can you see the new image if you refresh the web page? There are a couple of work-around options that you may try: + Use another name for the new image. + Use a seperate web page or custom http handler to read the image data and send it to the output stream.

      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