O'Reilly logo

Applied ASP.NET 4 in Context by Adam Freeman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required