Control State in ASP.Net 2.0

After long gap & some poem posting i have finally decided to get back to business. So while surfing the net for Control State in ASP .Net i have come across some good articles for Control state.

Control state is a new construct within ASP.NET 2.0, and it is really nothing more than view state; however, it is view state with a significant advantage; that advantage is that other developers using your control cannot disable control state as they can view state.

Control state survives even if the developer using the custom control disables view state. The advantage is pretty obvious; in prior versions of Visual Studio, the consumer of a custom control could disable view state; if the control relied on view state to maintain state information, the control would cease to function or at least misbehave. Creating control state removed the ability of a control consumer to disable view state based state management within the control; naturally, the control designer may still opt to not use either view state or control state based state management.

check the below references for more details.

http://www.codeproject.com/aspnet/TestControlStateEx.asp

http://www.pluralsight.com/blogs/fritz/archive/2004/07/01/472.aspx

Comments

Popular posts from this blog

6000 KM Road Trip

Export MS Access report to Excel..Font Problem

Testing AWS Rekognition from POSTMAN