ASP.NET Page /History.aspx (C#)
Uses Code Behind Page Page /History.aspx.cs (C#)
1: <%@ Page Language="C#" MasterPageFile="~/Master/MasterPage.master" AutoEventWireup="true" Inherits="History" Codebehind="History.aspx.cs" %>  
2: <asp:Content ID="MainContent" ContentPlaceHolderID="MainContentPlaceHolder" runat="server">  
3: <table style="height: 100%" class="Inner_Table" width="100%" border="0" align="center">  
4:     <tr>  
5:     <td valign="top" width="100%">  
6:         <table class="Content_Table" border="0" align="center" width="80%" cellpadding="5">  
7:         <tr>  
8:                     <td><asp:GridView runat="server" ID="grdResults" AllowPaging="True" PageSize="25"  
9:                             AllowSorting="True" Width="100%" AutoGenerateColumns="False" CellPadding="4"  
10:                             DataSourceID="ObjectDataSource1" ForeColor="#333333" GridLines="None"  
11:                             EnableModelValidation="True">  
12:                         <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />  
13:                         <RowStyle BackColor="#EFF3FB" />  
14:                         <Columns>  
15:                             <asp:BoundField DataField="ResultDate" DataFormatString="{0:yyyy-MMM-dd}"  
16:                                 HeaderText="Date" />  
17:                             <asp:BoundField DataField="TopicDesc" HeaderText="Test Type">  
18:                             <ItemStyle HorizontalAlign="Center" />  
19:                             </asp:BoundField>  
20:                             <asp:BoundField DataField="TotalQuestions" HeaderText="# Questions">  
21:                             <ItemStyle HorizontalAlign="Center" />  
22:                             </asp:BoundField>  
23:                             <asp:BoundField DataField="QuestionsCorrect" HeaderText="# Correct">  
24:                             <ItemStyle HorizontalAlign="Center" />  
25:                             </asp:BoundField>  
26:                             <asp:BoundField DataField="QuestionsIncorrect" HeaderText="# Incorrect">  
27:                             <ItemStyle HorizontalAlign="Center" />  
28:                             </asp:BoundField>  
29:                         </Columns>  
30:                         <EditRowStyle BackColor="#2461BF" />  
31:                         <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />  
32:                         <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />  
33:                         <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />  
34:                         <AlternatingRowStyle BackColor="White" />  
35:                     </asp:GridView>  
36:                         <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" OldValuesParameterFormatString="original_{0}"  
37:                             SelectMethod="GetHistory" TypeName="QuizNetOnline.Logic.UserSetting">  
38:                             <SelectParameters>  
39:                                 <asp:SessionParameter Name="userName"  
40:                                     SessionField="username" Type="String" />  
41:                             </SelectParameters>  
42:                               
43:                         </asp:ObjectDataSource>  
44:                     </td>  
45:         </tr>  
46:         </table>      
47:     </td>  
48:     </tr>  
49: </table>  
50: </asp:Content>

.NET Documentation Tool is © 2002 - 2009 Winnersh Triangle Web Solutions Limited.