asp.net - Page ViewState, Control ViewState and ControlState -


What is the difference between pageviewstrate, control viewstate, and controlstate? Why are there 3 different things in ASP.net?

A page is a control , therefore viewstate Inherit property when viewstate is saved, then ASP.NET On the control tree, it creates a persistent medium (a hidden field in the HTML provided by default) to the viewstrate of each control. The

ViewState incurs an overhead, repeater , DataGrid etc. for. It is therefore desirable to disable the viewstation often, and instead control every postback.

Although these problems occurred in .NET 1.x, because some controls do not work properly when the viewtet was disabled - paging and sorting in example DataGrid .

ControlState was therefore introduced in .NET 2 so that the control can save the minimum state data that they need to work on postback.

Comments

Popular posts from this blog

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -