Data views

A Data View is a live, customizable view of an XML data source — it retrieves data from a data source in the form of XML and displays that data by using Extensible Stylesheet Language Transformations (XSLTs).

You can create Data Views in both HTML pages and ASP.NET pages. You modify a Data View in an HTML page or an ASP.NET page through the Microsoft Expression Web interface in the same way, but the code that Expression Web writes for you is different in the two types of files:

When you create a Data View in an ASP.NET page, Expression Web adds an ASP XML control (<asp:Xml> tag) to your page and sets properties of that control. In addition, Expression Web creates an Extensible Stylesheet Language Transformations (XSLT) file (.xls) to provide the formatting that you design for the XML in the Expression Web interface.

  • When you create a Data View in an HTML page, Expression Web adds an IFRAME element to your page and creates two additional files for your website: a JavaScript file that executes when the IFRAME element content loads and an XSLT file to provide the formatting that you design for the XML in the Expression Web interface.

See also

Concepts

Add a Data view

Apply conditional formatting to a Data view

Sort data in a Data view

Create a formula column in a Data view

Change the layout of a Data view

Modify the columns in a Data view

Filter data in a Data view

Add RSS feeds to a page

Display sample data in a Data view