ASP.NET Data controls

There are two types of ASP.NET data controls available in Microsoft Expression Web: Data Source controls, which allow you to set properties for connections to database or XML data sources, and Data controls, which allow you to display data from data sources specified in Data Source controls.

Data Source Controls

  • AccessDataSource control   The AccessDataSource control is a data source control that works with Microsoft Access databases. For information about programming the AccessDataSource control, see AccessDataSource Class Cc295567.xtlink_newWindow(en-us,Expression.40).png in the MSDN library.

  • SiteMapDataSource control   The SiteMapDataSource Web server control retrieves navigation data from a site-map provider, and then passes the data to controls that can display that data, such as the TreeView and Menu controls. For information about programming the SiteMapDataSource control, see SiteMapDataSource Class Cc295567.xtlink_newWindow(en-us,Expression.40).png in the MSDN library.

  • SqlDataSource control   The SqlDataSource control enables you to use a Data control to access data located in a relational data base, including Microsoft SQL Server and Oracle databases, as well as OLE DB and ODBC data sources. For information about programming the SqlDataSource control, see SqlDataSource Class Cc295567.xtlink_newWindow(en-us,Expression.40).png in the MSDN library.

  • XmlDataSource control   The XmlDataSource control makes XML data available to data-bound controls. You can use it to display both hierarchical and tabular data, although the XmlDataSource control is typically used to display hierarchical XML data in read-only scenarios. For information about programming the XmlDataSource control, see XmlDataSource Class Cc295567.xtlink_newWindow(en-us,Expression.40).png in the MSDN library.

For an overview of Data Source controls, see Data Source Controls Overview Cc295567.xtlink_newWindow(en-us,Expression.40).png in the MSDN library.

Data controls

  • DataList control   The DataList control is useful for displaying data in any repeating structure, such as a table. The DataList control can display rows in different layouts, such as ordering them in columns or rows. For information about programming the DataList control, see DataList Class Cc295567.xtlink_newWindow(en-us,Expression.40).png in the MSDN library.

  • DetailsView control   The DetailsView control gives you the ability to display, edit, insert, or delete a single record at a time from its associated data source. The DetailsView control displays only a single data record at a time, even if its data source exposes multiple records. For information about programming the DetailsView control, see DetailsView Class Cc295567.xtlink_newWindow(en-us,Expression.40).png in the MSDN library.

  • FormView control   The FormView control gives you the ability to work with a single record from a data source, similar to the DetailsView control. The difference between the FormView and the DetailsView controls is that the DetailsView control uses a tabular layout where each field of the record is displayed as a row of its own. In contrast, the FormView control does not specify a pre-defined layout for displaying the record. Instead, you create a template containing controls to display individual fields from the record. For information about programming the FormView control, see FormView Class Cc295567.xtlink_newWindow(en-us,Expression.40).png in the MSDN library.

  • GridView control   The GridView control displays the values of a data source in a table where each column represents a field and each row represents a record. The GridView control allows you to select, sort, and edit these items. For information about programming the GridView control, see GridView Class Cc295567.xtlink_newWindow(en-us,Expression.40).png in the MSDN library.

  • Repeater control   The Repeater control is a data-bound container control that produces a list of individual items. You define the layout of individual items on a web page using templates. When the page runs, the control repeats the layout for each item in the data source. For information about programming the Repeater control, see Repeater Class Cc295567.xtlink_newWindow(en-us,Expression.40).png in the MSDN library.

For an overview of Data Controls, see ASP.NET Data-Bound Web Server Controls Overview Cc295567.xtlink_newWindow(en-us,Expression.40).png in the MSDN library.

See also

Concepts

Working with ASP.NET sites
ASP.NET Validation controls
ASP.NET Navigation controls
ASP.NET Login controls
ASP.NET WebParts controls

Other resources

ASP.NET Standard controls

Send feedback about this topic to Microsoft. © 2011 Microsoft Corporation. All rights reserved.