|
Äëÿ ñîõðàíåíèÿ ñîñòîÿíèÿ ASP.NET êîíòðîëîâ (íàïðèìåð çàíà÷åíèé ïåðåìåííûõ)
Microsoft ïðåäëàãåò èñïîëüçîâàòü ìåõàíèçì ViewState.
A server control's view state is the accumulation of all its property values.
In order to preserve these values across HTTP requests, ASP.NET server controls
use this property, which is an instance of the StateBag class, to store
the property values. The values are then passed as a variable to an HTML hidden
input element when subsequent requests are processed. For more information about
saving server control view state, see
Maintaining State in a Control.
|