博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

treeview basic display

Posted on 2006-07-12 22:52  daniel-shen  阅读(163)  评论(0)    收藏  举报

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

<%@ Register Assembly="Microsoft.Web.UI.WebControls" Namespace="Microsoft.Web.UI.WebControls"
    TagPrefix="iewc" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>无标题页</title>
</head>
<body>
    <form runat="server">
    <table width=100% height=100% border="1">
        <tr>
            <td valign=top width=30%>
        <iewc:TreeView ID="TreeView1" runat="server" ></iewc:TreeView></td>
        <td valign=top>
        <iewc:TreeView ID="TreeView2" runat="server">
           <iewc:TreeNode runat="server" Text="ASP.NET Books" Expanded="True" TreeNodeSrc="XMLFile.xml" />
        </iewc:TreeView></td>
        </tr>
    </table>
    </form>
</body>
</html>
******************
iis中asp.net版本需要2.支持