How to reduce viewstate size of server control?

zjreborn

New Member
I have developed a server control which inherits from \[code\]CompositeControl\[/code\] and \[code\]INamingContainer\[/code\]. It has 2 TextBoxes and 1 small image.But when rendering in \[code\]GridView\[/code\] its ViewState size is up to 500 bytes. It also has about 20 properties, but I don't use ViewState here.I only use \[code\]get;set;\[/code\] and I bind it again when postback.Now I am wondering how to reduce this ViewState size and how I can examine this ViewState . If I can examine the values of ViewState , it would be helpful to fix the problem.
 
Back
Top