<%@ Page language="c#" Codebehind="TreeViewExample9.aspx.cs" AutoEventWireup="false" Inherits="ASP.NET答疑300问例程.第5章_高级Web控件.TreeViewExample9" %>
<%@ Register TagPrefix="iewc" Namespace="Microsoft.Web.UI.WebControls" Assembly="Microsoft.Web.UI.WebControls" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>TreeViewExample2</title>
	</HEAD>
	<body>
		<form id="Form1" method="post" runat="server">
			<P>
				<iewc:TreeView id="TreeView1" runat="server" ExpandedImageUrl="folderopen.gif" ImageUrl="folder.gif"
					AutoPostBack="True" AutoSelect="True">
					<iewc:TreeNode Text="同学">
						<iewc:TreeNode Text="张三">
							<iewc:TreeNode Text="电话">
								<iewc:TreeNode Text="6222211"></iewc:TreeNode>
								<iewc:TreeNode Text="6223399"></iewc:TreeNode>
							</iewc:TreeNode>
						</iewc:TreeNode>
						<iewc:TreeNode Text="李四">
							<iewc:TreeNode Text="手机-13910008888"></iewc:TreeNode>
							<iewc:TreeNode Text="生日-19790902"></iewc:TreeNode>
							<iewc:TreeNode Text="地址-北京市"></iewc:TreeNode>
						</iewc:TreeNode>
						<iewc:TreeNode Text="王五">
							<iewc:TreeNode Text="行业-IT业"></iewc:TreeNode>
							<iewc:TreeNode Text="地址-海淀区中关村" Expanded="True"></iewc:TreeNode>
						</iewc:TreeNode>
						<iewc:TreeNode Text="李六"></iewc:TreeNode>
					</iewc:TreeNode>
					<iewc:TreeNode Text="同事">
						<iewc:TreeNode Text="王明"></iewc:TreeNode>
						<iewc:TreeNode Text="李静"></iewc:TreeNode>
					</iewc:TreeNode>
					<iewc:TreeNode Text="朋友"></iewc:TreeNode>
				</iewc:TreeView></P>
			<P>
				<asp:Button id="DelButton" runat="server" Text="删除"></asp:Button><BR>
				<asp:TextBox id="FindTextBox" runat="server"></asp:TextBox>
				<asp:Button id="FindButton" runat="server" Text="查找"></asp:Button><BR>
				<asp:TextBox id="AddTextBox" runat="server"></asp:TextBox>
				<asp:Button id="AddButton" runat="server" Text="增加"></asp:Button><BR>
				<asp:TextBox id="SelTextBox" runat="server"></asp:TextBox>
				<asp:Button id="SelButton" runat="server" Text="选择"></asp:Button><BR>
				<FONT face="宋体">GetNodeIndex is :
					<asp:Label id="NodeIndexLabel" runat="server"></asp:Label><BR>
				</FONT><FONT face="宋体">
					<asp:TextBox id="ExpTextBox" runat="server"></asp:TextBox>
					<asp:Button id="ExpandLevelButton" runat="server" Text="展开层数"></asp:Button></P>
			</FONT>
		</form>
	</body>
</HTML>
