If you want to keep the view state server-side or in some other place on the rendered page.
You might, for instance, determine that the wire cost exceeds the server-side memory cost and therefore want to keep View State on the server.
Override these two methods :
Saves any view-state information for the page.
Override this method if you want to save the Page view state in anything other than a hidden field. If you choose to do so, you must also override the Page.LoadPageStateFromPersistenceMedium method.
protected virtual void SavePageStateToPersistenceMedium(object viewState);
Loads any saved view-state information to the Page object. Override this method if you want to load the Page view-state information in anything other than a hidden field.
If you want to specify something other than hidden fields to save view state when using this method, you must also override the SaveStateToPersistenceMedium method.
protected virtual object LoadPageStateFromPersistenceMedium();
Subscribe to:
Post Comments (Atom)
C# Sucks!
JK!! Seriously, though, somewhere around C#-3 we should have inculcated ourselves with the question: "Does 'CAN' == 'SHOULD...
-
That pesky problem has reared its ugly head again! I remembered that its a permissions problem but forgot the wrinkle where you have to REMO...
-
Today I learned that it is possible to call private and protected methods by using reflection. This is a great technique for Unit Testing su...
No comments:
Post a Comment