* roottypes.cs: Rename from tree.cs.
[mono.git] / mcs / class / System.Web / Test / mainsoft / MainsoftWebApp / System_Web_UI_WebControls / DataList / DataList_ExtractTemplateRows.aspx
1 <%@ Register TagPrefix="cc1" Namespace="GHTWebControls" Assembly="MainsoftWebApp" %>
2 <%@ Page Language="c#" AutoEventWireup="false" Codebehind="DataList_ExtractTemplateRows.aspx.cs" Inherits="GHTTests.System_Web_dll.System_Web_UI_WebControls.DataList_ExtractTemplateRows" %>
3 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
4 <HTML>
5         <HEAD>
6                 <title>DataList_ExtractTemplateRows</title>
7                 <meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
8                 <meta content="Visual Basic .NET 7.1" name="CODE_LANGUAGE">
9                 <meta content="JavaScript" name="vs_defaultClientScript">
10                 <meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
11                 <script LANGUAGE="JavaScript">
12         function ScriptTest()
13         {
14             var theform;
15                     if (window.navigator.appName.toLowerCase().indexOf("netscape") > -1) {
16                             theform = document.forms["Form1"];
17                     }
18                     else {
19                             theform = document.Form1;
20                     }
21         }
22                 </script>
23         </HEAD>
24         <body>
25                 <form id="Form1" method="post" runat="server">
26                         <P>
27                                 <cc1:GHTSubTest id="GHTSubTest1" runat="server" Height="310px" Width="280px" Description="Default value = false">
28                                         <asp:DataList id=DataList1 runat="server" GridLines="Both" DataSource="<%# m_data %>" DataMember="Items" BorderColor="Black" BorderStyle="Solid">
29                                                 <AlternatingItemStyle BackColor="Gray"></AlternatingItemStyle>
30                                                 <ItemTemplate>
31                                                         <asp:Table id="Table1" runat="server" GridLines="Both" BackColor="Blue">
32                                                                 <asp:TableRow>
33                                                                         <asp:TableCell>
34                                                                                 <%# DataBinder.Eval(Container.DataItem, "StringValue") %>
35                                                                         </asp:TableCell>
36                                                                         <asp:TableCell>
37                                                                                 <%# DataBinder.Eval(Container.DataItem, "PriceValue") %>
38                                                                         </asp:TableCell>
39                                                                         <asp:TableCell RowSpan="2">
40                                                                                 <%# DataBinder.Eval(Container.DataItem, "DescriptionValue") %>
41                                                                         </asp:TableCell>
42                                                                 </asp:TableRow>
43                                                                 <asp:TableRow>
44                                                                         <asp:TableCell ColumnSpan="2">
45                                                                                 <%# DataBinder.Eval(Container.DataItem, "ExponentialValue") %>
46                                                                         </asp:TableCell>
47                                                                 </asp:TableRow>
48                                                         </asp:Table>
49                                                 </ItemTemplate>
50                                         </asp:DataList>
51                                 </cc1:GHTSubTest></P>
52                         <P>
53                                 <cc1:GHTSubTest id="GHTSubTest2" runat="server" Width="280px" Height="250px" Description="Set to true">
54                                         <asp:DataList id=DataList2 runat="server" GridLines="Both" DataSource="<%# m_data %>" DataMember="Items" BorderColor="Black" BorderStyle="Solid" ExtractTemplateRows="True">
55                                                 <AlternatingItemStyle BackColor="Gray"></AlternatingItemStyle>
56                                                 <ItemTemplate>
57                                                         <asp:Table id="Table2" runat="server" GridLines="Both">
58                                                                 <asp:TableRow>
59                                                                         <asp:TableCell>
60                                                                                 <%# DataBinder.Eval(Container.DataItem, "StringValue") %>
61                                                                         </asp:TableCell>
62                                                                         <asp:TableCell>
63                                                                                 <%# DataBinder.Eval(Container.DataItem, "PriceValue") %>
64                                                                         </asp:TableCell>
65                                                                         <asp:TableCell RowSpan="2">
66                                                                                 <%# DataBinder.Eval(Container.DataItem, "DescriptionValue") %>
67                                                                         </asp:TableCell>
68                                                                 </asp:TableRow>
69                                                                 <asp:TableRow>
70                                                                         <asp:TableCell ColumnSpan="2">
71                                                                                 <%# DataBinder.Eval(Container.DataItem, "ExponentialValue") %>
72                                                                         </asp:TableCell>
73                                                                 </asp:TableRow>
74                                                         </asp:Table>
75                                                 </ItemTemplate>
76                                         </asp:DataList>
77                                 </cc1:GHTSubTest></P>
78                         <P>
79                                 <cc1:GHTSubTest id="GHTSubTest3" runat="server" Width="280px" Height="256px" Description="Show only the table in the template, when set to 'True'">
80                                         <asp:DataList id=DataList3 runat="server" GridLines="Both" DataSource="<%# m_data %>" DataMember="Items" BorderColor="Black" BorderStyle="Solid" ExtractTemplateRows="True">
81                                                 <AlternatingItemStyle BackColor="Gray"></AlternatingItemStyle>
82                                                 <ItemTemplate>
83                                                         <asp:Table id="Table2" runat="server" GridLines="Both">
84                                                                 <asp:TableRow>
85                                                                         <asp:TableCell>
86                                                                                 <%# DataBinder.Eval(Container.DataItem, "StringValue") %>
87                                                                         </asp:TableCell>
88                                                                         <asp:TableCell>
89                                                                                 <%# DataBinder.Eval(Container.DataItem, "PriceValue") %>
90                                                                         </asp:TableCell>
91                                                                         <asp:TableCell RowSpan="2">
92                                                                                 <%# DataBinder.Eval(Container.DataItem, "DescriptionValue") %>
93                                                                         </asp:TableCell>
94                                                                 </asp:TableRow>
95                                                                 <asp:TableRow>
96                                                                         <asp:TableCell ColumnSpan="2">
97                                                                                 <%# DataBinder.Eval(Container.DataItem, "ExponentialValue") %>
98                                                                         </asp:TableCell>
99                                                                 </asp:TableRow>
100                                                         </asp:Table>
101                                                         <P>
102                                                                 <asp:Button id="Button1" runat="server" Text="Button"></asp:Button>
103                                                                 <asp:Image id="Image1" runat="server"></asp:Image>Palin Text</P>
104                                                         <DIV style="DISPLAY: inline; WIDTH: 146px; HEIGHT: 26px" ms_positioning="FlowLayout"><STRONG><EM><U><FONT color="#ff0000">Html 
105                                                                                                 formatted text</FONT></U></EM></STRONG></DIV>
106                                                 </ItemTemplate>
107                                         </asp:DataList>
108                                 </cc1:GHTSubTest></P>
109                         <P>
110                                 <cc1:GHTSubTest id="GHTSubTest4" runat="server" Width="120px" Height="710px" Description="Show the whole template when set to 'false'">
111                                         <asp:DataList id=DataList4 runat="server" GridLines="Both" DataSource="<%# m_data %>" DataMember="Items" BorderColor="Black" BorderStyle="Solid">
112                                                 <AlternatingItemStyle BackColor="Gray"></AlternatingItemStyle>
113                                                 <ItemTemplate>
114                                                         <asp:Table id="Table2" runat="server" GridLines="Both">
115                                                                 <asp:TableRow>
116                                                                         <asp:TableCell>
117                                                                                 <%# DataBinder.Eval(Container.DataItem, "StringValue") %>
118                                                                         </asp:TableCell>
119                                                                         <asp:TableCell>
120                                                                                 <%# DataBinder.Eval(Container.DataItem, "PriceValue") %>
121                                                                         </asp:TableCell>
122                                                                         <asp:TableCell RowSpan="2">
123                                                                                 <%# DataBinder.Eval(Container.DataItem, "DescriptionValue") %>
124                                                                         </asp:TableCell>
125                                                                 </asp:TableRow>
126                                                                 <asp:TableRow>
127                                                                         <asp:TableCell ColumnSpan="2">
128                                                                                 <%# DataBinder.Eval(Container.DataItem, "ExponentialValue") %>
129                                                                         </asp:TableCell>
130                                                                 </asp:TableRow>
131                                                         </asp:Table>
132                                                         <P>
133                                                                 <asp:Button id="Button1" runat="server" Text="Button"></asp:Button>
134                                                                 <asp:Image id="Image1" runat="server"></asp:Image>Palin Text</P>
135                                                         <DIV style="DISPLAY: inline; WIDTH: 146px; HEIGHT: 26px" ms_positioning="FlowLayout"><STRONG><EM><U><FONT color="#ff0000">Html 
136                                                                                                 formatted text</FONT></U></EM></STRONG></DIV>
137                                                 </ItemTemplate>
138                                         </asp:DataList>
139                                 </cc1:GHTSubTest></P>
140                 </form>
141         </body>
142 </HTML>