Skip to Main Content
Programming ASP.NET 3.5, 4th Edition
book

Programming ASP.NET 3.5, 4th Edition

by Dan Maharry, Dan Hurwitz, Jesse Liberty
October 2008
Intermediate to advanced content levelIntermediate to advanced
1166 pages
28h 31m
English
O'Reilly Media, Inc.
Content preview from Programming ASP.NET 3.5, 4th Edition

Sources of Data and DataSource Controls

It may be of some comfort that the various sources of data your websites can access have not changed. They are:

  • Databases (e.g., SQL Server, Oracle, MySQL)

  • XML documents (e.g., RSS feeds, the metabase for your Internet Information Services [IIS] web server)

  • Business objects

  • Flat files (e.g., IIS logfiles, CSV files, Excel files)

In addition, the various ways provided to bind data to items on a web page remain the same as well. This chapter will concentrate on the numerous data source controls available since ASP.NET 2.0.

Tip

The name generally used to refer to the ways in which you can access and use data in ASP.NET is ADO.NET. The ADO.NET team at Microsoft is responsible for the contents of the System.Data and System.Linq namespaces.

A data source control, which is derived from the System.Web.UI.DataSourceControl class, provides a single object that you can define declaratively (in your web page) or programmatically (in your code-behind file). It will manage internally the connection to the data, its selection, and various options concerning its presentation (such as paging and caching) so that all you need to do is tell a UI control what data source to use and everything else is taken care of. In some cases, the controls also allow you to send changes to that data back to the source from which it came. The entire life cycle of the query to and response from the data source is encapsulated in this one control.

Many data source controls exist for accessing ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Programming Microsoft® ASP.NET 3.5

Programming Microsoft® ASP.NET 3.5

Dino Esposito
Learning ASP.NET 3.5, 2nd Edition

Learning ASP.NET 3.5, 2nd Edition

Brian MacDonald, Dan Hurwitz, Jesse Liberty
Pro ASP.Net 4 in C# 2010

Pro ASP.Net 4 in C# 2010

Matthew MacDonald, Adam Freeman, Mario Szpuszta
Programming .NET 3.5

Programming .NET 3.5

Jesse Liberty, Alex Horovitz

Publisher Resources

ISBN: 9780596156657Supplemental ContentErrata Page