ASP.NET Page /Admin/Errors.aspx (C#)
Uses Code Behind Page Page /Admin/Errors.aspx.cs (C#)
1: <%@ Page Language="C#" AutoEventWireup="true" Inherits="Error" Codebehind="Errors.aspx.cs" %>  
2:   
3: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">  
4:   
5: <html xmlns="http://www.w3.org/1999/xhtml" >  
6: <head runat="server">  
7:     <title>Admin - Error Maintenance</title>  
8: </head>  
9: <body>  
10:     <form id="form1" runat="server">  
11:                 <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/Admin/Default.aspx">Home</asp:HyperLink>  
12:                 <br />      
13:     <div>  
14:         <asp:DetailsView ID="DetailsView1" runat="server" AutoGenerateRows="False" CellPadding="4"  
15:             DataKeyNames="ErrorID" DataSourceID="SqlDataSource1" ForeColor="#333333" GridLines="None"  
16:             Height="50px" Width="687px" AllowPaging="True" EnableModelValidation="True" >  
17:             <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />  
18:             <CommandRowStyle BackColor="#D1DDF1" Font-Bold="True" />  
19:             <EditRowStyle BackColor="#2461BF" />  
20:             <RowStyle BackColor="#EFF3FB" />  
21:             <PagerSettings PageButtonCount="50" />  
22:             <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />  
23:             <Fields>  
24:                 <asp:ButtonField Text="Delete" ButtonType="Button" CommandName="Delete" />  
25:                 <asp:BoundField DataField="ErrorID" HeaderText="ErrorID" ReadOnly="True" SortExpression="ErrorID" />  
26:                 <asp:BoundField DataField="ErrorUserName" HeaderText="ErrorUserName" SortExpression="ErrorUserName" />  
27:                 <asp:BoundField DataField="ErrorDate" HeaderText="ErrorDate" SortExpression="ErrorDate" />  
28:                 <asp:TemplateField>  
29:                                     <ItemTemplate><asp:TextBox runat="server" Rows="10" TextMode="MultiLine" Text='<%# Eval("ErrorLog") %>' Width="100%"></asp:TextBox></ItemTemplate>  
30:                 </asp:TemplateField>  
31:                 <asp:BoundField DataField="ErrorDesc" HeaderText="ErrorDesc" SortExpression="ErrorDesc" />  
32:                 <asp:BoundField DataField="ErrorSection" HeaderText="ErrorSection" SortExpression="ErrorSection" />  
33:             </Fields>  
34:             <FieldHeaderStyle BackColor="#DEE8F5" Font-Bold="True" />  
35:             <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />  
36:             <AlternatingRowStyle BackColor="White" />  
37:         </asp:DetailsView>  
38:         <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:QuiznetOnline.Data.Properties.Settings.Default.QuizNetOnlineConnectionString %>"  
39:             SelectCommand="SELECT * FROM [Error]" DeleteCommand="DELETE FROM [Error] WHERE ErrorID=@ErrorID"></asp:SqlDataSource>  
40:       
41:     </div>  
42:     </form>  
43: </body>  
44: </html>  

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