Tagged with attributes
Reducing viewstate on custom controls
One of the biggest waste I see in using viewstate is that it persists values that are already set in the aspx. These get set every time that the page runs and don’t need to be round tripped to the browser so that they will be persisted. I did a little experiment a while back [...]Published in ASP.NET, Server controls on Sunday, February 1st, 2009
Saving server control properties to ViewState with custom attributes
Use custom attributes to take the tedious work out of creating server control properties that persist to ViewState. Declare a normal property and use an Attribute to tag it for storage to ViewState. See how to use reflection to see which properties need to be persisted.Published in Server controls on Wednesday, August 13th, 2008






