Docstoc

Introducing the Data View Web Part

Document Sample
Introducing the Data View Web Part Powered By Docstoc
					   What is the Data View Web Part?
   Tour of the DVWP in SharePoint Designer
    ◦ Data Sources
    ◦ Parameters
    ◦ Re-using a DVWP
   Customizing with XSLT
   Not in the web part gallery (SPD only)
   “Swiss Army Knife” of web parts
   Displays data from many data sources
    ◦   SharePoint Lists
    ◦   RSS/XML
    ◦   Databases
    ◦   Web services (SOAP)
   Uses ASP.NET Data Source Controls (so is
    extensible to other data sources)
Demo
XML   XSLT


  HTML
<xsl:stylesheet version=“1.0” xmlns:… >

<xsl:template match=“/”>
</xsl:template>

<xsl:template name=“testTemplate1”>
</xsl:template>

<xsl:template name=“testTemplate2”>
 <xsl:param name=“testParam1”/>
 <xsl:param name=“testParam2”/>
</xsl:template>

</xsl:stylesheet>
<Rows>
                         <TABLE BORDER=1>
  <Row>                  <xsl:for-each select=“/Rows/Row”>
     <Name>John</Name>      <TR>
  </Row>                       <TD><xsl:value-of
  <Row>                  select=“Name”/></TD>
                            </TR>
     <Name>Bob</Name>    </xsl:for-each>
  </Row>                 </TABLE>
</Rows>




                John
                Bob
Demo
   http://msdn.microsoft.com/en-us/library/ms256069.aspx
   http://www.w3.org/TR/xslt

				
DOCUMENT INFO
Shared By:
Categories:
Tags:
Stats:
views:10
posted:5/5/2012
language:English
pages:9
Lingjuan Ma Lingjuan Ma
About