温馨提示:代码在线浏览功能只能做为源码浏览参考,如果想更进一步了解该代码请下载:BugNet0.7.881.0汉化免安装版源码
当前文件:
BugNet/BugNET_WAP/Administration/Host/LogViewer.aspx[3K,2009-6-12 11:34:49],打开代码结构图
BugNet/BugNET_WAP/Administration/Host/LogViewer.aspx[3K,2009-6-12 11:34:49],打开代码结构图1<%@ Page Language="C#" MasterPageFile="~/Shared/FullWidth.master" AutoEventWireup="true" Inherits="Administration_Host_LogViewer" Title="Log Viewer" Codebehind="LogViewer.aspx.cs" %> 2
<asp:Content ID="Content2" ContentPlaceHolderID="Content" Runat="Server"> 3
<h1 class="page-title">查看系统日志</h1> 4
<div style="padding:10px 0 10px 0;"> 5
<asp:imagebutton runat="server" id="save" CssClass="icon" OnClick="cmdClearLog_Click" ImageUrl="~/Images/page_white_delete.gif" /> 6
<asp:LinkButton ID="cmdClearLog" OnClick="cmdClearLog_Click" runat="server" Text="清空日志" /> 7
</div> 8
<asp:UpdatePanel ID="UpdatePanel2" RenderMode="inline" runat="Server"> 9
<ContentTemplate> 10
<asp:GridView ID="gvLog" runat="server" CssClass="gen-table" AllowPaging="True" AllowSorting="True" 11
DataSourceID="ObjectDataSource1" 12
PagerSettings-Mode="NumericFirstLast" 13
PagerStyle-HorizontalAlign="right" 14
BorderWidth="0px" PageSize="5" OnRowCreated="GridViewSortImages" 15
GridLines="None" AutoGenerateColumns="False" 16
OnRowDataBound="gvLog_RowDataBound" > 17
<RowStyle CssClass="gen-row" /> 18
<HeaderStyle CssClass="gen-header" /> 19
<AlternatingRowStyle CssClass="gen-altrow" /> 20
<Columns> 21
<asp:TemplateField HeaderText="级别" SortExpression="Level"> 22
<ItemStyle HorizontalAlign="center" Width="30px" /> 23
<ItemTemplate> 24
<asp:image id="imgLevel" runat="server" ImageUrl=""></asp:image> 25
</ItemTemplate> 26
</asp:TemplateField> 27
<asp:BoundField DataField="Date" HeaderText="日期" SortExpression="Date" DataFormatString="{0:d}" ItemStyle-Width="150px"/> 28
<asp:TemplateField HeaderText="错误信息" SortExpression="Message"> 29
<ItemTemplate> 30
<asp:Label ID="MessageLabel" Font-Italic="true" runat="server" Font-Bold="True"></asp:Label> - <asp:Label ID="LoggerLabel" Font-Italic="true" runat="server" Font-Bold="True"></asp:Label> 31
<br /> 32
<asp:Label ID="ExceptionLabel" runat="server"></asp:Label> 33
</ItemTemplate> 34
</asp:TemplateField> 35
<asp:BoundField DataField="User" HeaderText="用户名" SortExpression="User" ControlStyle-Width="40px" /> 36
<asp:BoundField DataField="Thread" HeaderText="条数" SortExpression="Thread" /> 37
</Columns> 38
<PagerStyle HorizontalAlign="Right" /> 39
</asp:GridView> 40
</ContentTemplate> 41
</asp:UpdatePanel> 42
<br /> 43
<asp:ObjectDataSource ID="ObjectDataSource1" runat="server" EnablePaging="True" SelectCountMethod="GetLogCount" SelectMethod="GetLog" TypeName="BugNET.BusinessLogicLayer.ApplicationLog"></asp:ObjectDataSource> 44
45
</asp:Content> 46
47
48





