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 upload problem

Image upload problem

Scheduled Pinned Locked Moved ASP.NET
questionhelptutorial
3 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.
  • D Offline
    D Offline
    dasumohan
    wrote on last edited by
    #1

    Hi, I am uploading an image and replacing existing image. I have upload button that I am uploading the image with. How can I write code such that the uploaded image displays immediately. If I use different file name for the image the file displays by setting up imageurl. However if I want to use the same file name as this image has to be displayed in other web application that runs on asp, the image does not load until I do a manual refresh of the page. It does not load even if I do a response.redirect to the same page. I believe it may be cache problem, if it is how to rectify it?

    Raj D

    V 1 Reply Last reply
    0
    • D dasumohan

      Hi, I am uploading an image and replacing existing image. I have upload button that I am uploading the image with. How can I write code such that the uploaded image displays immediately. If I use different file name for the image the file displays by setting up imageurl. However if I want to use the same file name as this image has to be displayed in other web application that runs on asp, the image does not load until I do a manual refresh of the page. It does not load even if I do a response.redirect to the same page. I believe it may be cache problem, if it is how to rectify it?

      Raj D

      V Offline
      V Offline
      Vasudevan Deepak Kumar
      wrote on last edited by
      #2

      It is by design. If you want to override you can avoid caching of the image thus incurring a performance overhead. You can observe this syndrome in your CodeProject members page also.

      Vasudevan Deepak Kumar Personal Homepage Tech Gossips

      D 1 Reply Last reply
      0
      • V Vasudevan Deepak Kumar

        It is by design. If you want to override you can avoid caching of the image thus incurring a performance overhead. You can observe this syndrome in your CodeProject members page also.

        Vasudevan Deepak Kumar Personal Homepage Tech Gossips

        D Offline
        D Offline
        dasumohan
        wrote on last edited by
        #3

        Thanks Vasudevan, How to avoid caching of the image, can you give code please..

        Raj D

        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