treeviewbindxml.aspx
来自「这是asp.net^和Visual C++Sharp编写的串并口通讯的书籍 源代」· ASPX 代码 · 共 65 行
ASPX
65 行
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="TreeViewBindXML.aspx.cs"
Inherits="TreeViewBindXML" %>
<!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>
<link id="InstanceStyle" href="StyleSheet.css" type="text/css" rel="stylesheet" />
</head>
<body>
<form id="form1" runat="server">
<div>
<table style="background-image: url(image/daohang.jpg); width: 863px; height: 168px">
<tr>
<td style="width: 19px; height: 181px">
</td>
<td style="width: 98px; height: 181px">
</td>
<td style="width: 142px; height: 181px">
</td>
<td style="width: 440px; height: 181px">
</td>
</tr>
<tr>
<td style="width: 19px; height: 305px">
</td>
<td style="width: 98px; height: 305px">
</td>
<td style="width: 142px; height: 305px">
<asp:TreeView ID="TreeView1" runat="server" DataSourceID="XmlDataSource1" ImageSet="Faq" style="left: -16px; position: relative; top: 3px">
<DataBindings>
<asp:TreeNodeBinding DataMember="Hardware" Text="管理系统功能区" Value="管理系统功能区"></asp:TreeNodeBinding>
<asp:TreeNodeBinding TextField="Category" DataMember="Item"></asp:TreeNodeBinding>
<asp:TreeNodeBinding TextField="Choice" DataMember="Option" NavigateUrlField="Url"></asp:TreeNodeBinding>
<asp:TreeNodeBinding DataMember="leaf" NavigateUrlField="Url" TextField="son" />
</DataBindings>
<ParentNodeStyle Font-Bold="False" />
<HoverNodeStyle Font-Underline="True" ForeColor="Purple" />
<SelectedNodeStyle Font-Underline="True" HorizontalPadding="0px" VerticalPadding="0px" />
<NodeStyle Font-Names="Tahoma" Font-Size="8pt" ForeColor="DarkBlue" HorizontalPadding="5px"
NodeSpacing="0px" VerticalPadding="0px" />
</asp:TreeView>
</td>
<td style="width: 440px; height: 305px">
</td>
</tr>
<tr>
<td style="width: 19px; height: 83px;">
</td>
<td style="width: 98px; height: 83px;">
</td>
<td style="width: 142px; height: 83px;">
</td>
<td style="width: 440px; height: 83px;">
</td>
</tr>
</table>
</div>
<asp:XmlDataSource ID="XmlDataSource1" runat="server" DataFile="~/App_Data/Computer.xml">
</asp:XmlDataSource>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?