Debian Codegraph @

mcs/class/System.Web.Extensions/Test/resources/ListViewTest.aspx

raw
1 <%@ Page Language="C#" AutoEventWireup="true" CodeFile="MyPage.aspx.cs" Inherits="MyPage" %>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
4 <html xmlns="http://www.w3.org/1999/xhtml">
5 <head runat="server">
6 <title></title>
7 </head>
8 <body>
9 <form id="form1" runat="server">
10 <asp:ObjectDataSource ID="ObjectDataSource1" runat="server"
11 SelectMethod="GetCountries" TypeName="TestCode.CountryCollection"
12 SortParameterName="sortExpression" UpdateMethod="Update"
13 DeleteMethod="Delete" InsertMethod="Insert">
14 <DeleteParameters>
15 <asp:Parameter Name="id" Type="Int32" />
16 </DeleteParameters>
17 <UpdateParameters>
18 <asp:Parameter Name="id" Type="Int32" />
19 <asp:Parameter Name="name" Type="String" />
20 <asp:Parameter Name="capital" Type="String" />
21 <asp:Parameter Name="population" Type="Double" />
22 </UpdateParameters>
23 <SelectParameters>
24 <asp:Parameter Name="sortExpression" Type="String" />
25 </SelectParameters>
26 <InsertParameters>
27 <asp:Parameter Name="id" Type="Int32" />
28 <asp:Parameter Name="name" Type="String" />
29 <asp:Parameter Name="capital" Type="String" />
30 <asp:Parameter Name="population" Type="Double" />
31 </InsertParameters>
32 </asp:ObjectDataSource>
33
34 <div>
35 <t:ListViewPoker ID="ListView1" runat="server" DataSourceID="ObjectDataSource1" InsertItemPosition="LastItem">
36 <ItemTemplate>
37 <tr style="">
38 <td>
39 <asp:Button ID="DeleteButton" runat="server" CommandName="Delete"
40 Text="Delete" />
41 <asp:Button ID="EditButton" runat="server" CommandName="Edit" Text="Edit" />
42 <asp:Button ID="SelectButton" runat="server" CommandName="Select" Text="Select" />
43 </td>
44 <td>
45 <asp:Label ID="IDLabel" runat="server" Text='<%# Eval("ID") %>' />
46 </td>
47 <td>
48 <asp:Label ID="NameLabel" runat="server" Text='<%# Eval("Name") %>' />
49 </td>
50 <td>
51 <asp:Label ID="CapitalLabel" runat="server" Text='<%# Eval("Capital") %>' />
52 </td>
53 <td>
54 <asp:Label ID="PopulationLabel" runat="server"
55 Text='<%# Eval("Population") %>' />
56 </td>
57 </tr>
58 </ItemTemplate>
59 <AlternatingItemTemplate>
60 <tr style="">
61 <td>
62 <asp:Button ID="DeleteButton" runat="server" CommandName="Delete"
63 Text="Delete" />
64 <asp:Button ID="EditButton" runat="server" CommandName="Edit" Text="Edit" />
65 <asp:Button ID="SelectButton" runat="server" CommandName="Select" Text="Select" />
66 </td>
67 <td>
68 <asp:Label ID="IDLabel" runat="server" Text='<%# Eval("ID") %>' />
69 </td>
70 <td>
71 <asp:Label ID="NameLabel" runat="server" Text='<%# Eval("Name") %>' />
72 </td>
73 <td>
74 <asp:Label ID="CapitalLabel" runat="server" Text='<%# Eval("Capital") %>' />
75 </td>
76 <td>
77 <asp:Label ID="PopulationLabel" runat="server"
78 Text='<%# Eval("Population") %>' />
79 </td>
80 </tr>
81 </AlternatingItemTemplate>
82 <EmptyDataTemplate>
83 <table runat="server"
84
85 style="">
86 <tr>
87 <td>
88 No data was returned.</td>
89 </tr>
90 </table>
91 </EmptyDataTemplate>
92 <InsertItemTemplate>
93 <tr style="">
94 <td>
95 <asp:Button ID="InsertButton" runat="server" CommandName="Insert"
96 Text="Insert" />
97 <asp:Button ID="CancelButton" runat="server" CommandName="Cancel"
98 Text="Clear" />
99 </td>
100 <td>
101 <asp:TextBox ID="IDTextBox" runat="server" Text='<%# Bind("ID") %>' />
102 </td>
103 <td>
104 <asp:TextBox ID="NameTextBox" runat="server" Text='<%# Bind("Name") %>' />
105 </td>
106 <td>
107 <asp:TextBox ID="CapitalTextBox" runat="server" Text='<%# Bind("Capital") %>' />
108 </td>
109 <td>
110 <asp:TextBox ID="PopulationTextBox" runat="server"
111 Text='<%# Bind("Population") %>' />
112 </td>
113 </tr>
114 </InsertItemTemplate>
115 <LayoutTemplate>
116 <table runat="server">
117 <tr runat="server">
118 <td runat="server">
119 <table ID="itemPlaceholderContainer" runat="server" border="0"
120 style="">
121 <tr runat="server" style="">
122 <th runat="server">
123 </th>
124 <th runat="server">
125 ID</th>
126 <th runat="server">
127 Name</th>
128
129 <th runat="server">
130 Capital</th>
131 <th runat="server">
132 Population</th>
133
134 </tr>
135 <tr ID="itemPlaceholder" runat="server">
136 </tr>
137 </table>
138 </td>
139 </tr>
140 <tr runat="server">
141 <td runat="server"
142 style="">
143 </td>
144 </tr>
145 </table>
146 </LayoutTemplate>
147 <EditItemTemplate>
148 <tr style="">
149 <td>
150 <asp:Button ID="UpdateButton" runat="server" CommandName="Update"
151 Text="Update" />
152 <asp:Button ID="CancelButton" runat="server" CommandName="Cancel"
153 Text="Cancel" />
154 </td>
155 <td>
156 <asp:TextBox ID="IDTextBox" runat="server" Text='<%# Bind("ID") %>' />
157 </td>
158 <td>
159 <asp:TextBox ID="NameTextBox" runat="server" Text='<%# Bind("Name") %>' />
160 </td>
161 <td>
162 <asp:TextBox ID="CapitalTextBox" runat="server" Text='<%# Bind("Capital") %>' />
163 </td>
164 <td>
165 <asp:TextBox ID="PopulationTextBox" runat="server"
166 Text='<%# Bind("Population") %>' />
167 </td>
168 </tr>
169 </EditItemTemplate>
170 <SelectedItemTemplate>
171 <tr style="">
172 <td>
173 <asp:Button ID="DeleteButton" runat="server" CommandName="Delete"
174 Text="Delete" />
175 <asp:Button ID="EditButton" runat="server" CommandName="Edit" Text="Edit" />
176 </td>
177 <td>
178 <asp:Label ID="IDLabel" runat="server" Text='<%# Eval("ID") %>' />
179 </td>
180 <td>
181 <asp:Label ID="NameLabel" runat="server" Text='<%# Eval("Name") %>' />
182 </td>
183 <td>
184 <asp:Label ID="CapitalLabel" runat="server" Text='<%# Eval("Capital") %>' />
185 </td>
186 <td>
187 <asp:Label ID="PopulationLabel" runat="server"
188 Text='<%# Eval("Population") %>' />
189 </td>
190 </tr>
191 </SelectedItemTemplate>
192 </t:ListViewPoker>
193 </div>
194 </form>
195 </body>
196 </html>