1 <%@ Page Language="C#" AutoEventWireup="true" Codebehind="MyPage.aspx.cs" Inherits="MyPage" %>
\r
3 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
\r
5 <html xmlns="http://www.w3.org/1999/xhtml" >
\r
6 <head runat="server">
\r
7 <title>Untitled Page</title>
\r
10 <form id="form1" runat="server">
\r
13 <asp:FormView ID="FormView1" runat="server" AllowPaging="True" BackColor="#DEBA84"
\r
14 BorderColor="#DEBA84" BorderStyle="None" BorderWidth="1px" CellPadding="3" CellSpacing="2"
\r
15 DataSourceID="ObjectDataSource1" GridLines="Both">
\r
16 <FooterStyle BackColor="#F7DFB5" ForeColor="#8C4510" />
\r
17 <EditRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="White" />
\r
18 <RowStyle BackColor="#FFF7E7" ForeColor="#8C4511" />
\r
19 <PagerStyle ForeColor="#8C4512" HorizontalAlign="Center" />
\r
21 <asp:Label ID="Label1" runat="server" Text="<%# FormView1.DataItem.ToString() %>"></asp:Label>
\r
23 <HeaderStyle BackColor="#A55129" Font-Bold="True" ForeColor="White" />
\r
25 <asp:ObjectDataSource ID="ObjectDataSource1" runat="server"
\r
26 DeleteMethod="DeleteList" InsertMethod="InsertList" SelectMethod="GetMyList"
\r
27 TypeName="MonoTests.System.Web.UI.WebControls.TestMyData" UpdateMethod="UpdateList">
\r
29 <asp:Parameter Name="value" Type="Int32" />
\r
32 <asp:Parameter Name="value" Type="Int32" />
\r
35 <asp:Parameter Name="index" Type="Int32" />
\r
36 <asp:Parameter Name="value" Type="Int32" />
\r
38 </asp:ObjectDataSource>
\r
40 <asp:FormView ID="FormView2" runat="server" AllowPaging="True" CellPadding="4" DataSourceID="ObjectDataSource1"
\r
41 ForeColor="#333333">
\r
42 <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
\r
43 <EditRowStyle BackColor="#999999" />
\r
45 <asp:Button ID="Button1" runat="server" CommandArgument='<%# "Prev" %>' Text='<%# "Prev Item" %>' CommandName='<%# "Page" %>' />
\r
46 <asp:Button ID="Button2" runat="server" CommandArgument='<%# "Next" %>' Text='<%# "Next Item" %>' CommandName='<%# "Page" %>' />
\r
47 <asp:Button ID="Button3" runat="server" CommandArgument='<%# "First" %>' Text='<%# "First Item" %>' CommandName='<%# "Page" %>' />
\r
48 <asp:Button ID="Button4" runat="server" CommandArgument='<%# "Last" %>' Text='<%# "Last Item" %>' CommandName='<%# "Page" %>' />
\r
50 <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
\r
51 <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
\r
53 <asp:Label ID="Label2" runat="server" Text="<%# FormView2.DataItem.ToString() %>"></asp:Label>
\r
55 <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
\r
57 <asp:Label ID="Label3" runat="server" Text='<%# "Footer Template Test" %>'></asp:Label>
\r
63 <asp:FormView ID="FormView3" runat="server" AllowPaging="True" BackColor="LightGoldenrodYellow"
\r
64 BorderColor="Tan" BorderWidth="1px" CellPadding="2" DataSourceID="ObjectDataSource1"
\r
66 <FooterStyle BackColor="Tan" ForeColor="#FFC0FF" HorizontalAlign="Right" />
\r
67 <EditRowStyle BackColor="DarkSlateBlue" ForeColor="GhostWhite" />
\r
68 <PagerStyle BackColor="PaleGoldenrod" ForeColor="DarkSlateBlue" HorizontalAlign="Center" />
\r
70 <asp:Label ID="Label6" runat="server" Text='<%# "FormView Footer" %>'></asp:Label>
\r
73 <asp:Label ID="Label4" runat="server" Text="<%# FormView3.DataItem.ToString() %>"></asp:Label>
\r
75 <HeaderStyle BackColor="Tan" Font-Bold="True" ForeColor="#C00000" HorizontalAlign="Center" VerticalAlign="Top" />
\r
77 <asp:Label ID="Label5" runat="server" Text='<%# "Header Template Test" %>'></asp:Label>
\r
81 <asp:FormView ID="FormView4" runat="server" AllowPaging="True" BackColor="White"
\r
82 BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" CellPadding="3" CellSpacing="10"
\r
83 DataSourceID="ObjectDataSource1" DefaultMode="Edit" FooterText="Using Footer Text property"
\r
84 GridLines="Both" HeaderText="Using Header Text property" HorizontalAlign="Right" CaptionAlign="Right">
\r
85 <FooterStyle BackColor="Maroon" ForeColor="#000066" HorizontalAlign="Center" />
\r
86 <EditRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
\r
88 <asp:LinkButton ID="LinkButton1" runat="server" CommandArgument='<%# "Next" %>' Text='<%# "Next" %>' CommandName='<%# "Page" %>'></asp:LinkButton>
\r
89 <asp:LinkButton ID="LinkButton2" runat="server" CommandArgument='<%# "Prev" %>' Text='<%# "Prev" %>' CommandName='<%# "Page" %>'></asp:LinkButton>
\r
90 <asp:Label ID="Label7" runat="server" Text='<%# "Page Index: "+ FormView4.PageIndex %>'></asp:Label>
\r
92 <RowStyle BackColor="#FF8080" ForeColor="#000066" HorizontalAlign="Center" />
\r
93 <PagerStyle BackColor="LightGray" ForeColor="#000066" HorizontalAlign="Left" />
\r
95 <asp:TextBox ID="TextBox1" runat="server" Text="<%# FormView4.DataItem.ToString() %>"></asp:TextBox>
\r
97 <HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White" HorizontalAlign="Left" />
\r