DataGrid Controls and Data Persistence

ASP.NET applications are modeled after the Web Forms model, which is the typical Visual Basic form-based, client/server model of interaction delivered on the Web. The ASP.NET run time shields you from the structural differences between the two models. It takes care of serializing and deserializing the state of the form. Any server-side processing takes place in an environment that maintains the state of the client browser. When you use DataGrid controls, you need to retrieve and process the control’s data source every time you execute postback code on the server. As mentioned earlier in the chapter, the DataGrid control does not cache its data source in the control’s view state. This makes sense because ...

Get Building Web Solutions with ASP.NET and ADO.NET now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.