ASP.Net Session

前端 未结 13 1347
清酒与你
清酒与你 2020-12-08 07:54

I am wanting to store the \"state\" of some actions the user is performing in a series of different ASP.Net webforms. What are my choices for persisting state, and what are

13条回答
  •  执念已碎
    2020-12-08 08:25

    Short term information, that only needs to live until the next request, can also be stored in the ViewState. This means that objects are serialized and stored in the page sent to the browser, which is then posted back to the server on a click event or similar. Then the ViewState is decoded and turned into objects again, ready to be retrieved.

提交回复
热议问题