Override SaveViewState Custom Controls – Cautious

Be cautious when you Override SaveViewState during Custom Control development. The SaveViewState is called on Page Load and all Post Backs, irrespective of whether the property backed by the viewstate is modified  programatically or at runtime. It could cost you heavily if the Page has a lot of viewstate backed properties..  

0

Optimize Viewstate and Enum

In Asp.Net , When we use custom enumerations , and store them in the ViewState as Enum Text (Single or Married),for eg. enum MyStatus { Single = 0, Married } The FullTypeName, i.e, name of the Type, the assembly Name, Strong name public key, culture  etc are stored in the viewstate. takeus up Almost 200…

5