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. How to prevent pages from expiring??

How to prevent pages from expiring??

Scheduled Pinned Locked Moved ASP.NET
helpquestioncsharpasp-nettutorial
4 Posts 4 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.
  • L Offline
    L Offline
    lnong
    wrote on last edited by
    #1

    I left my ASP.NET page running for an hour during lunch. When I came back, I clicked on a button and I get this error message: "View State is invalid for this page and might be corrupted". Then I clicked on the "Back" button of Internet Explorer, and I got this warning: "Warning: Page has expired". How do I prevent any of these from happening? For instance, how do I set it so that the page will never expire? And how do I fix the view state problem? Thanks.

    S O J 3 Replies Last reply
    0
    • L lnong

      I left my ASP.NET page running for an hour during lunch. When I came back, I clicked on a button and I get this error message: "View State is invalid for this page and might be corrupted". Then I clicked on the "Back" button of Internet Explorer, and I got this warning: "Warning: Page has expired". How do I prevent any of these from happening? For instance, how do I set it so that the page will never expire? And how do I fix the view state problem? Thanks.

      S Offline
      S Offline
      Steve McLenithan
      wrote on last edited by
      #2

      I think ViewState expires when the session does. Perhaps setting a longer session timeout would work.

      $TeVe McLeNiThAn

      1 Reply Last reply
      0
      • L lnong

        I left my ASP.NET page running for an hour during lunch. When I came back, I clicked on a button and I get this error message: "View State is invalid for this page and might be corrupted". Then I clicked on the "Back" button of Internet Explorer, and I got this warning: "Warning: Page has expired". How do I prevent any of these from happening? For instance, how do I set it so that the page will never expire? And how do I fix the view state problem? Thanks.

        O Offline
        O Offline
        Owin_wan_kenobi
        wrote on last edited by
        #3

        Inong, This error has nothing to do with wour code or .net in general. It's a browser feature to expire former visited pages. i have no idea if this can be altered. But I would look on the client browser side (perhaps a meta tag??) Good luck, Owin

        1 Reply Last reply
        0
        • L lnong

          I left my ASP.NET page running for an hour during lunch. When I came back, I clicked on a button and I get this error message: "View State is invalid for this page and might be corrupted". Then I clicked on the "Back" button of Internet Explorer, and I got this warning: "Warning: Page has expired". How do I prevent any of these from happening? For instance, how do I set it so that the page will never expire? And how do I fix the view state problem? Thanks.

          J Offline
          J Offline
          Jonathan Craig
          wrote on last edited by
          #4

          I have not looked at my ASP stuff in a while, but I thought the page expiration time is set throught IIS setup. The meta tag HTTP-EQUIV="Expires" may also help. Sorry, if this is of no use. :confused: Jonathan Craig www.mcw-tech.com

          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