Prev | Current Page 162 | Next

Rob Cameron and Dale Michalk

"Pro ASP.NET 3.5 Server Controls and AJAX Components"


??? Storing a large amount of data in hidden variables can become a performance issue,
depending on the amount of network bandwidth and processing available. Like the
previous drawback, developers can manually add an additional processing layer that
implements compression to minimize data size.
Despite these limitations, hidden form fields remain a popular method for developers to
maintain application state. ASP.NET takes its cue from this and adds a layer of abstraction
called view state on top of the HTML form hidden variable mechanism to make life easier on
web developers wishing to take advantage of client-side state with a minimal amount of fuss
and effort.
ViewState
As mentioned in the previous section, the ViewState server control state management technique
builds on the hidden form field client-side method, taking advantage of its well documented
benefits while minimizing its potential drawbacks. ViewState addresses hidden form variable
limitations by providing built-in data management, compression, encoding, and tamper resistance,
so web developers and control builders can focus on the application requirements and
business logic.
94 CHAPTER 3 ?–  ASP.NET S TATE MANAGEMENT
In ASP.NET 2.0 and later, ViewState is greatly improved compared to .


Pages:
150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174