Working with Data Sources

Web Forms includes a set of data source controls that operate on a range of different types of data. This range runs from simple collections of .NET objects through to the Entity Framework. The complete set is described in Table 18-1.

image

For our purposes, three of these controls are particularly interesting: LinqDataSource, SqlDataSource, and EntityDataSource. We'll start with EntityDataSource because it provides a simple mechanism for achieving a very common goal: integrating data from a database into a web application.

The other data sources are perfectly functional, but the ones I describe are the most likely to be useful ...

Get Applied ASP.NET 4 in Context 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.