📄 topiclist.aspx
字号:
<%@ Page language="c#" Inherits="MyBBS.Web.TopicList" CodeFile="TopicList.aspx.cs" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
<HEAD>
<title>TopicList</title>
<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
<meta content="C#" name="CODE_LANGUAGE">
<meta content="JavaScript" name="vs_defaultClientScript">
<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
<LINK href="Styles/Style.css" type="text/css" rel="stylesheet">
</HEAD>
<body>
<form id="Form1" method="post" runat="server">
<TABLE id="Table1" style="WIDTH: 480px; HEIGHT: 272px" cellSpacing="1" cellPadding="1"
width="480" border="1">
<TR>
<TD align="center"><FONT face="宋体">帖子列表</FONT></TD>
</TR>
<TR>
<TD vAlign="top" align="center">
<asp:GridView ID="GV" runat="server" AutoGenerateColumns="False" AllowPaging="True" OnPageIndexChanging="GV_PageIndexChanging" OnRowDeleting="GV_RowDeleting" OnRowUpdating="GV_RowUpdating" PageSize="5" OnRowCommand="GV_RowCommand" CellPadding="4" ForeColor="#333333" GridLines="None" AllowSorting="True">
<Columns>
<asp:BoundField DataField="TopicId" HeaderText="编号" />
<asp:BoundField DataField="UserLoginName" HeaderText="用户"/>
<asp:BoundField DataField="Title" HeaderText="标题"/>
<asp:BoundField DataField="CreateTime" HeaderText="发表时间"/>
<asp:ButtonField Text="修改" HeaderText="修改" CommandName="Update"/>
<asp:HyperLinkField HeaderText="详细信息" dataTextFormatString="详细信息" DataNavigateUrlFormatString="TopicDetail.aspx?topic_id={0}" Text="详细信息" DataNavigateUrlFields="TopicId" />
<asp:ButtonField Text="删除" HeaderText="删除" CommandName="Delete"/>
</Columns>
<FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
<RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
<EditRowStyle BackColor="#999999" />
<SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
<PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
<HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
<AlternatingRowStyle BackColor="White" ForeColor="#284775" />
</asp:GridView>
<asp:label id="LabelPages" runat="server" Width="150px"></asp:label><asp:hyperlink id="HyperLinkAddTopic" runat="server" NavigateUrl="TopicAdd.aspx">发表新帖>></asp:hyperlink>
</TD>
</TR>
</TABLE>
</form>
</body>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -