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. Urgent: Help me ???

Urgent: Help me ???

Scheduled Pinned Locked Moved ASP.NET
helptutorialquestion
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.
  • E Offline
    E Offline
    enjoycrack
    wrote on last edited by
    #1

    Hello all, I have a page .aspx that has image control to modify the information of a teacher But I have a problem: when I updated the image of a teacher, I dont known how to show the updated image of the teacher Although, I upload image file successfully but the browser still catches the old image please help me. Thanks in advance :((:zzz:

    A 1 Reply Last reply
    0
    • E enjoycrack

      Hello all, I have a page .aspx that has image control to modify the information of a teacher But I have a problem: when I updated the image of a teacher, I dont known how to show the updated image of the teacher Although, I upload image file successfully but the browser still catches the old image please help me. Thanks in advance :((:zzz:

      A Offline
      A Offline
      Alsvha
      wrote on last edited by
      #2

      Don't know if this is what you need, but I think you need to force the page to reload when it is viewed, instead of viewing the cached version. There is the "Response.Expires = (Integer Amount)" that you can use for this, if my memory serves me. -1 as value should force the page to reload each time it is viewed as far as I recall There is something about the Response.Expires being deprecated, but I'm not terrible much into it (yet). I hope this helps. With regards. Alsvha --------------------------- 127.0.0.1 - Sweet 127.0.0.1

      E 1 Reply Last reply
      0
      • A Alsvha

        Don't know if this is what you need, but I think you need to force the page to reload when it is viewed, instead of viewing the cached version. There is the "Response.Expires = (Integer Amount)" that you can use for this, if my memory serves me. -1 as value should force the page to reload each time it is viewed as far as I recall There is something about the Response.Expires being deprecated, but I'm not terrible much into it (yet). I hope this helps. With regards. Alsvha --------------------------- 127.0.0.1 - Sweet 127.0.0.1

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

        I already tried to do it: I put Response.Expires = -1 in event Page_Load but the problem still happen. I still tried to do: Response.Cache.SetExpires(DateTime.Now.AddSeconds(-1)) the problem is still exist DO YOU HAVE ANOTHER WAY? thanks

        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