How to prevent pages from expiring??
-
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.
-
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.
I think ViewState expires when the session does. Perhaps setting a longer session timeout would work.
$TeVe McLeNiThAn
-
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.
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
-
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.
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