File: treeview-databound.aspx

package info (click to toggle)
xsp 3.8-2.1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 5,352 kB
  • ctags: 2,452
  • sloc: cs: 13,500; sh: 12,512; xml: 8,279; perl: 1,189; makefile: 765; ansic: 299; php: 6
file content (55 lines) | stat: -rw-r--r-- 1,779 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<%@ Page Language="C#" %>
<%@ Register TagPrefix="mono" TagName="MonoSamplesHeader" src="~/controls/MonoSamplesHeader.ascx" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<HTML>
  <head>
    <title>TreeView - DataBound</title>
    <link rel="stylesheet" type="text/css" href="/mono-xsp.css">
  </head>
  <BODY bgcolor="white">
    <mono:MonoSamplesHeader runat="server"/>
    <form runat="server">
      <asp:xmldatasource
        id="XmlDataSource1"
        runat="server">
		<data>
			<books>
			   <languagebooks>
				 <book Title="Pure JavaScript" Author="Wyke, Gilliam, and Ting"/>
				 <book Title="Effective C++: 50 Specific Ways to Improve Your Programs and Designs" author="Scott Meyers">
					 <book Title="Pure JavaScript" Author="Wyke, Gilliam, and Ting"/>
				 </book>
				 <book Title="Assembly Language: Step-By-Step" author="Jeff Duntemann"/>
				 <book Title="Oracle PL/SQL Best Practices" author="Steven Feuerstein"/>                
			   </languagebooks>
			   <securitybooks>
				  <book Title="Counter Hack: A Step-by-Step Guide to Computer Attacks and Effective Defenses" author="Ed Skoudis"/>
			   </securitybooks>
			</books>
		</data>
      </asp:xmldatasource>

      <asp:treeview
        id="TreeView1"
        runat="server"
	  	ExpandDepth="0"
		MaxDataBindDepth = "-1"
		NodeIndent = "50"
		LineImagesFolder = "TreeLineImages"
		ShowLines="true"
		ExpandImageToolTip="expandeix!"
		NodeWrap="true"
		ShowCheckBoxes = "All"
		ShowExpandCollapse="true"
		EnableClientScript="true"
		SelectedNodeStyle-BackColor="yellow"
        datasourceid="XmlDataSource1">
        <databindings>
          <asp:treenodebinding datamember="book" textfield="Title"/>
        </databindings>
      </asp:TreeView>

    </form>
  </BODY>
</HTML>