FineUI/FineUI.Examples/tree/tree_nodedatabound.aspx
三生石上 8e116609c6 v4.2.0
2015-05-19 14:45:47 +08:00

30 lines
1.1 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="tree_nodedatabound.aspx.cs"
Inherits="FineUI.Examples.tree.databind.tree_nodedatabound" %>
<!DOCTYPE html>
<html>
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<meta name="sourcefiles" content="~/tree/databind/website.xml" />
<link href="../res/css/main.css" rel="stylesheet" type="text/css" />
<style>
.highlight {
font-weight: bold;
color: red;
}
</style>
</head>
<body>
<form id="form1" runat="server">
<f:PageManager ID="PageManager1" runat="server" />
<f:Tree ID="Tree1" Width="650px" EnableCollapse="true" OnNodeDataBound="Tree1_NodeDataBound"
ShowHeader="true" Title="树控件NodeDataBound事件" runat="server">
</f:Tree>
<asp:XmlDataSource ID="XmlDataSource1" runat="server" DataFile="~/tree/databind/website.xml"></asp:XmlDataSource>
<br />
注:在 NodeDataBound 事件中,将 "驻马店市" 和 "合肥市" 置为高亮状态。
</form>
</body>
</html>