Page.PageStatePersister 属性
定义
获取与该页关联的 PageStatePersister 对象。Gets the PageStatePersister object associated with the page.
protected:
virtual property System::Web::UI::PageStatePersister ^ PageStatePersister { System::Web::UI::PageStatePersister ^ get(); };
protected virtual System.Web.UI.PageStatePersister PageStatePersister { get; }
member this.PageStatePersister : System.Web.UI.PageStatePersister
Protected Overridable ReadOnly Property PageStatePersister As PageStatePersister
属性值
与该页关联的 PageStatePersister。A PageStatePersister associated with the page.
注解
HTTP 请求和响应本质上是无状态的。HTTP requests and responses are inherently stateless. 为了保持 HTTP 请求之间的状态,ASP.NET 服务器页可以存储 Page 状态。To maintain state between HTTP requests, ASP.NET server pages can store Page state. 此状态称为 "视图状态",由页面和控件设置以及使页面和控件显示的数据与用户在页面上最后一次往返行程中的显示方式相同。This state, called view state, consists of page and control settings and data that make the page and controls appear as if they are the same ones that the user saw and interacted with on their last round trip to the page. 有多种机制可用于在对相同页面的连续请求之间存储视图状态。Several mechanisms exist to store view state between successive requests to the same page. 抽象 PageStatePersister 类表示这些状态存储机制的基类。The abstract PageStatePersister class represents the base class for these state storage mechanisms.
页面开发人员通常不需要使用 PageStatePersister 属性。Page developers will typically not need to use the PageStatePersister property. 此 PageStatePersister 属性主要由控件开发人员用来扩展类的功能 Page 。The PageStatePersister property is used primarily by control developers extending the functionality of the Page class.