Data View

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 site: 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

Tasks

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

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