Alex Rivera | Logout

Does viewstate expire?

Asked 2008-10-24T14:45:03.543
26

Let's say you have a aspx page that does not rely on session, but does rely on viewstate for persistance between postbacks.

If a user is accessing this page, and leaves for a long lunch, will viewstate still be valid when he returns?

Edit
Report

1 Answer

1

By default, Viewstate is included with the html content as a hidden input. That means it won't expire, but that everything in viewstate must be uploaded from the user's browser. Since that's typically the slowest part of the connection in a public site, putting a lot of stuff in viewstate can quickly make your site seem very slow.

answered 2008-10-24T14:51:51.317

Your Answer