📄 rizhimangage.aspx
字号:
<%@ Page Language="C#" MasterPageFile="~/Manager.master" AutoEventWireup="true" EnableViewState ="false" CodeFile="rizhiMangage.aspx.cs" Inherits="rizhiMangage" Title="日志管理" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<table style="width: 378px">
<tr>
<td style="width: 11px">
<asp:Image ID="Image1" runat="server" ImageUrl="~/images/rizhi.png" Width="516px" /></td>
</tr>
<tr>
<td style="width: 11px; height: 173px;">
<asp:GridView ID="GridView1" runat="server" Width="515px" AutoGenerateColumns="False" DataSourceID="logDataSourc" DataKeyNames="编号" OnRowDeleting="GridView1_RowDeleting1" OnRowCommand="GridView1_RowCommand" CellPadding="4" ForeColor="#333333" GridLines="None" OnRowDataBound="GridView1_RowDataBound" Font-Size="12px" AllowPaging="True" AllowSorting="True" PageSize="5">
<Columns>
<asp:BoundField DataField="编号" HeaderText="编号" InsertVisible="False" ReadOnly="True"
SortExpression="编号" />
<asp:BoundField DataField="登录用户" HeaderText="登录用户" SortExpression="登录用户" />
<asp:BoundField DataField="IP" HeaderText="IP" SortExpression="IP" />
<asp:BoundField DataField="登录时间" HeaderText="登录时间" SortExpression="登录时间" />
<asp:ButtonField CommandName="deleteLog" Text="删除" />
</Columns>
<FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
<RowStyle BackColor="#EFF3FB" Height="25px" />
<EditRowStyle BackColor="#2461BF" />
<SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
<PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
<HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" Height="30px" />
<AlternatingRowStyle BackColor="White" />
</asp:GridView>
<asp:SqlDataSource ID="logDataSourc" runat="server" ConnectionString="<%$ ConnectionStrings:news_manageConnectionString9 %>"
SelectCommand="SELECT * FROM [myviewlog]"></asp:SqlDataSource>
</td>
</tr>
</table>
</asp:Content>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -