ASP.NET.in.a.Nutshell.Second.Edition [Electronic resources] نسخه متنی

اینجــــا یک کتابخانه دیجیتالی است

با بیش از 100000 منبع الکترونیکی رایگان به زبان فارسی ، عربی و انگلیسی

ASP.NET.in.a.Nutshell.Second.Edition [Electronic resources] - نسخه متنی

G. andrew Duthie; matthew Macdonald

| نمايش فراداده ، افزودن یک نقد و بررسی
افزودن به کتابخانه شخصی
ارسال به دوستان
جستجو در متن کتاب
بیشتر
تنظیمات قلم

فونت

اندازه قلم

+ - پیش فرض

حالت نمایش

روز نیمروز شب
جستجو در لغت نامه
بیشتر
لیست موضوعات
توضیحات
افزودن یادداشت جدید









IStateManager

System.Web.UI (system.web.dll)interface

This interface provides methods that are used to manage view state,
which is the set of information that describes a
control's current state. View state is stored in a
hidden field on a Web Forms page, so it can be maintained across
postbacks. State management is built into the
Control class, and you can write values into the
Control.ViewState collection to store any
information you need without using IStateManager.
However, you can also create a custom control that implements this
interface to customize how state management works. The
IStateManager consists of three methods:
SaveViewState( ), which stores changes to an
object, LoadViewState( ), which retrieves and
applies previously stored values, and TrackViewState(
)
, which sets the IsTrackingViewState
property to True and instructs ASP.NET to track
changes to the control's view state.

public interface 

IStateManager {
// Public Instance Properties
public bool

IsTrackingViewState {get; }
// Public Instance Methods
public void

LoadViewState (object

state );
public object

SaveViewState ( );
public void

TrackViewState ( );
}



Implemented By


Multiple types


/ 873