以前
微軟的這套控件可以在x?tabindex=
在中新建一個WEB工程
接著
<%@ Register TagPrefix=
Namespace=
Assembly=
當然
<FooBar:TreeView runat=
現在
<form runat=
<ie:TreeView runat=
<ie:TreeNode Text=
<ie:TreeNode Text=
<ie:TreeNode Text=
<ie:TreeNode Text=
<ie:TreeNode Text=
<ie:TreeNode Text=
<ie:TreeNode Text=
<ie:TreeNode Text=
<ie:TreeNode Text=
<ie:TreeNode Text=
<ie:TreeNode Text=
<ie:TreeNode Text=
<ie:TreeNode Text=
</ie:TreeNode>
</ie:TreeNode>
<ie:TreeNode Text=
<ie:TreeNode Text=
<ie:TreeNode Text=
</ie:TreeNode>
</ie:TreeView>
</form>
其中我們特別注意一下Expanded=
以上是在設計時
先來看下第一種方法
<?xml version=
<books>
<book price=
<title>Teach Yourself Active Server Pages
<authors>
<author>Mitchell</author>
<author>Atkinson</author>
</authors>
<year>
</book>
<book price=
<title>Designing Active Server Pages</title>
<authors>
<author>Mitchell</author>
</authors>
<year>
</book>
<book price=
<title>ASP
<authors>
<author>Mitchell</author>
<author>Mack</author>
<author>Walther</author>
<author>Seven</author>
<author>Anders</author>
<author>Nathan</author>
<author>Wahlin</author>
</authors>
<year>
</book>
<book price=
<title>ASP Unleashed</title>
<authors>
<author>Walther</author>
</authors>
<year>
</book>
</books>
如果我們使用第一種方法
<TREENODES>
<treenode text=
<treenode text=
</treenode>
<treenode text=
</TREENODES>
就是說
<?xml version=
<TREENODES>
<treenode text=
<treenode text=
<treenode text=
<treenode text=
<treenode text=
</treenode>
<treenode text=
</treenode>
<treenode text=
<treenode text=
<treenode text=
<treenode text=
</treenode>
<treenode text=
</treenode>
〈/TREENODES>
增加以下代碼
<form runat=
<ie:TreeView runat=
<ie:TreeNode runat=
</ie:TreeView>
</form>
這樣就將該xml文件綁定到樹形控件中去了
ASP
Teach Yourself Active Server Pages
Designing Active Server Pages
ASP
Programming ASP
可以看到
在使用XSL時
<form runat=
<ie:TreeView runat=
<ie:TreeNode runat=
TreeNodeSrc=
TreeNodeXsltSrc=
</ie:TreeView>
</form>
其中
<xsl:stylesheet xmlns:xsl=
<xsl:template match=
<TREENODES>
<xsl:for
<treenode>
<xsl:attribute name=
<xsl:value
</xsl:attribute>
<treenode>
<xsl:attribute name=
Price
</xsl:attribute>
</treenode>
<treenode text=
<xsl:for
<treenode>
<xsl:attribute name=
<xsl:value
</xsl:attribute>
</treenode>
</xsl:for
</treenode>
<treenode>
<xsl:attribute name=
Year Published
</xsl:attribute>
</treenode>
</treenode>
</xsl:for
</TREENODES>
</xsl:template>
</xsl:stylesheet>
在上面的XSL中
<xsl:attribute name=
<xsl:value
</xsl:attribute>
的屬性設置
運行後
From:http://tw.wingwit.com/Article/program/net/201311/13397.html