Does viewstate expire?

前端 未结 12 1524
-上瘾入骨i
-上瘾入骨i 2020-12-06 04:40

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 l

12条回答
  •  南方客
    南方客 (楼主)
    2020-12-06 05:02

    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.

提交回复
热议问题