📄 admin_message_edit.aspx
字号:
<%@ page language="C#" autoeventwireup="true" inherits="Admin_Admin_Message_Edit, App_Web_2de4qqid" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>系统管理中心</title>
<link href="../Images/Style.css" rel="stylesheet" type="text/css" />
</head>
<body style="margin: 1px">
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:GridView ID="GridViewMessage" runat="server" AllowPaging="True" AutoGenerateColumns="False"
CellPadding="4" DataKeyNames="ID" DataSourceID="SqlDS" ForeColor="#333333" GridLines="None" Width="100%" PageSize="20">
<FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
<Columns>
<asp:BoundField DataField="ID" HeaderText="编号" InsertVisible="False" ReadOnly="True"
SortExpression="ID">
<ItemStyle HorizontalAlign="Center" Width="10%" />
</asp:BoundField>
<asp:BoundField DataField="FixerName" HeaderText="收信人" SortExpression="FixerName">
<ItemStyle HorizontalAlign="Center" Width="15%" />
</asp:BoundField>
<asp:BoundField DataField="Title" HeaderText="标题" SortExpression="Title">
<ItemStyle HorizontalAlign="Left" Width="20%" />
</asp:BoundField>
<asp:BoundField DataField="Message" HeaderText="内容" SortExpression="Message">
<ItemStyle HorizontalAlign="Left" Width="20%" />
</asp:BoundField>
<asp:BoundField DataField="AddDate" DataFormatString="{0:yy-MM-dd HH:mm}" HeaderText="添加日期"
SortExpression="AddDate">
<ItemStyle HorizontalAlign="Center" Width="15%" />
</asp:BoundField>
<asp:CheckBoxField DataField="IsRead" HeaderText="阅读" SortExpression="IsRead">
<ItemStyle HorizontalAlign="Center" Width="10%" />
</asp:CheckBoxField>
<asp:TemplateField HeaderText="删除" ShowHeader="False">
<ItemStyle HorizontalAlign="Center" Width="10%" />
<ItemTemplate>
<asp:LinkButton ID="btnDelete" runat="server" CausesValidation="False" CommandName="Delete"
OnClientClick="return confirm('你确定要删除这条留言吗?')" Text="删除"></asp:LinkButton>
</ItemTemplate>
</asp:TemplateField>
</Columns>
<RowStyle BackColor="#EFF3FB" />
<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" />
<AlternatingRowStyle BackColor="White" />
</asp:GridView>
<asp:SqlDataSource ID="SqlDS" runat="server" ConnectionString="<%$ ConnectionStrings:SQLConnection %>"
SelectCommand="Admin_Message_List" DeleteCommand="Admin_Message_Delete" DeleteCommandType="StoredProcedure" SelectCommandType="StoredProcedure">
<DeleteParameters>
<asp:Parameter Name="ID" Type="Int32" />
</DeleteParameters>
</asp:SqlDataSource>
</ContentTemplate>
</asp:UpdatePanel>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -