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">
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">
15 if (window.navigator.appName.toLowerCase().indexOf("netscape") > -1) {
16 theform = document.forms["Form1"];
19 theform = document.Form1;
25 <form id="Form1" method="post" runat="server">
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>
31 <asp:Table id="Table1" runat="server" GridLines="Both" BackColor="Blue">
34 <%# DataBinder.Eval(Container.DataItem, "StringValue") %>
37 <%# DataBinder.Eval(Container.DataItem, "PriceValue") %>
39 <asp:TableCell RowSpan="2">
40 <%# DataBinder.Eval(Container.DataItem, "DescriptionValue") %>
44 <asp:TableCell ColumnSpan="2">
45 <%# DataBinder.Eval(Container.DataItem, "ExponentialValue") %>
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>
57 <asp:Table id="Table2" runat="server" GridLines="Both">
60 <%# DataBinder.Eval(Container.DataItem, "StringValue") %>
63 <%# DataBinder.Eval(Container.DataItem, "PriceValue") %>
65 <asp:TableCell RowSpan="2">
66 <%# DataBinder.Eval(Container.DataItem, "DescriptionValue") %>
70 <asp:TableCell ColumnSpan="2">
71 <%# DataBinder.Eval(Container.DataItem, "ExponentialValue") %>
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>
83 <asp:Table id="Table2" runat="server" GridLines="Both">
86 <%# DataBinder.Eval(Container.DataItem, "StringValue") %>
89 <%# DataBinder.Eval(Container.DataItem, "PriceValue") %>
91 <asp:TableCell RowSpan="2">
92 <%# DataBinder.Eval(Container.DataItem, "DescriptionValue") %>
96 <asp:TableCell ColumnSpan="2">
97 <%# DataBinder.Eval(Container.DataItem, "ExponentialValue") %>
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>
108 </cc1:GHTSubTest></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>
114 <asp:Table id="Table2" runat="server" GridLines="Both">
117 <%# DataBinder.Eval(Container.DataItem, "StringValue") %>
120 <%# DataBinder.Eval(Container.DataItem, "PriceValue") %>
122 <asp:TableCell RowSpan="2">
123 <%# DataBinder.Eval(Container.DataItem, "DescriptionValue") %>
127 <asp:TableCell ColumnSpan="2">
128 <%# DataBinder.Eval(Container.DataItem, "ExponentialValue") %>
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>
139 </cc1:GHTSubTest></P>