📄 addnotice.aspx
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="addnotice.aspx.cs" Inherits="addnotice" %>
<%@ Register Src="../pg.ascx" TagName="pg" TagPrefix="uc1" %>
<!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>
</head>
<body background="../img/x200662817362436940.jpg">
<form id="form1" runat="server">
<div style="text-align: center">
<asp:DataList ID="DataList1" runat="server" Width="68%" HorizontalAlign="Center" OnCancelCommand="DataList1_CancelCommand" OnEditCommand="DataList1_EditCommand" OnDeleteCommand="DataList1_DeleteCommand" OnItemCommand="DataList1_ItemCommand" OnItemDataBound="DataList1_ItemDataBound" OnUpdateCommand="DataList1_UpdateCommand" DataKeyField="NoticeID">
<HeaderTemplate>
<table>
<tr>
<td>通知号</td><td>通知标题</td><td>通知内容</td><td>发布日期</td><td>通知对象</td><td>修改</td><td>删除</td>
</tr>
</HeaderTemplate>
<ItemTemplate>
<tr>
<td><asp:Label ID="lblNoticeID" runat="server" Text='<%# Eval("NoticeID") %>'></asp:Label></td>
<td><asp:Label ID="lblNoticeTitle" runat="server" Text='<%# Eval("NoticeTitle") %>' Width="76px"></asp:Label></td>
<td><asp:Label ID="lblNoticeContent" runat="server" Text='<%# Eval("NoticeContent") %>'></asp:Label></td>
<td><asp:Label ID="lblNoticeDate" runat="server" Text='<%# Eval("NoticeDate") %>'></asp:Label></td>
<td><asp:Label ID="lblNoticeObject" runat="server" Text='<%# Eval("NoticeObject") %>'></asp:Label></td>
<td><asp:LinkButton ID="btmodify" runat="server" Text="编辑" commandname="edit" EnableViewState="true" /></td>
<td><asp:LinkButton ID="btdelete" runat="server" Text="删除" commandname="delete" /></td>
</tr>
</ItemTemplate>
<EditItemTemplate>
<tr>
<td><asp:Label ID="NoticeIDLabel" runat="server" Text='<%# Eval("NoticeID") %>'></asp:Label></td>
<td><asp:TextBox ID="txtNoticeTitle" runat="server" Text='<%# Eval("NoticeTitle") %>' Width="76px"></asp:TextBox></td>
<td><asp:TextBox ID="txtNoticeContent" runat="server" TextMode="multiLine" Text='<%# Eval("NoticeContent") %>'></asp:TextBox></td>
<td><asp:Label ID="NoticeDateLabel" runat="server" Text='<%# Eval("NoticeDate") %>'></asp:Label></td>
<td><asp:TextBox ID="txtNoticeObject" runat="server" Text='<%# Eval("NoticeObject") %>'></asp:TextBox></td>
<td><asp:LinkButton ID="btupdate" runat="server" Text="更新" commandname="update" /></td>
<td><asp:LinkButton ID="btcancel" runat="server" Text="取消" commandname="cancel"/></td>
</tr>
</EditItemTemplate>
<SeparatorTemplate>
<tr>
<td colspan="7">
<hr size="1pt" color="blue" />
</td>
</tr>
</SeparatorTemplate>
<FooterTemplate>
<tr>
<td><asp:TextBox ID="id" runat="server" Width="50px" BorderStyle="None"></asp:TextBox></td>
<td><asp:TextBox ID="title" runat="server" Width="100px"></asp:TextBox></td>
<td><asp:TextBox ID="content" runat="server" TextMode="MultiLine" Width="100px"></asp:TextBox></td>
<td></td>
<td><asp:TextBox ID="object" runat="server" Width="50px"></asp:TextBox></td>
<td colspan="2"><asp:Button ID="btinsert" runat="server" Font-Bold="True" Font-Names="隶书" Font-Size="Medium"
Text="添加" CommandName="insert" /></td>
</tr>
</table>
</FooterTemplate>
<ItemStyle Font-Names="隶书" Font-Size="Medium" HorizontalAlign="Center" VerticalAlign="Middle" />
<HeaderStyle Font-Names="隶书" Font-Size="Medium" HorizontalAlign="Center" VerticalAlign="Middle" />
</asp:DataList><br />
<uc1:pg ID="Pg1" runat="server" />
</div>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -