?? cardpartinfo.aspx
?? 用c#實現(xiàn)的BBS論壇。主要提供了三種角色:游客(沒有注冊的用戶)、已經(jīng)注冊的用戶和后臺管理員。當(dāng)游客進(jìn)入論壇之后
?? ASPX
字號:
??
?<%@ Page Language="C#" AutoEventWireup="true" CodeFile="CardPartInfo.aspx.cs" Inherits="ManageCard_CardPartInfo" %>
<%@ Register Src="BBSFooter.ascx" TagName="BBSFooter" TagPrefix="uc2" %>
<%@ Register Src="BBSHeader.ascx" TagName="BBSHeader" TagPrefix="uc1" %>
<%@ Register Src="../../UserControl/BBSMenu.ascx" TagName="BBSMenu" TagPrefix="uc5" %>
<!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>帖子詳細(xì)信息頁</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<table style="width: 755px; height: 138px;" align="center" cellpadding="0" cellspacing="0">
<tr>
<td style="width: 755px; height: 138px;" >
<uc1:BBSHeader ID="BBSHeader1" runat="server" />
</td>
</tr>
</table>
<table style="width: 755px" align="center" cellpadding="0" cellspacing="0">
<tr>
<td style="width: 176px; text-align: left; background-image: url(../../Image/左1.jpg); height: 20px;">
<asp:Label ID="Label2" runat="server" Font-Size="9pt" Text="歡迎您," Width="50px"></asp:Label><asp:Label
ID="labUserName" runat="server" Font-Size="9pt" Width="74px"></asp:Label>
</td>
<td style="width: 579px; text-align: left; background-image: url(../../Image/背景.jpg); height: 20px;">
</td>
</tr>
</table>
<table align="center" style="width: 755px; height: 363px;" cellpadding="0" cellspacing="0">
<tr>
<td style="width: 176px; vertical-align: top; text-align: center; background-image: url(../../Image/左1.jpg);">
<br />
<uc5:BBSMenu ID="BBSMenu1" runat="server" />
</td>
<td style="width: 579px; text-align: left; vertical-align: top; background-image: url(../../Image/背景.jpg);">
<table style="width: 478px" align="center" cellpadding="0" cellspacing="0">
<tr>
<td style="background-image: url(../../Image/標(biāo)頭.jpg); width: 478px; height: 26px; text-indent: 3pt;">
<asp:Label ID="Label3" runat="server" Font-Size="9pt" Text="帖子ID:" Width="46px"></asp:Label><asp:Label ID="labCardID" runat="server" Width="28px" Font-Size="9pt"></asp:Label><asp:Label ID="labCardTitle" runat="server" Width="85px" Font-Size="9pt"></asp:Label>
</td>
</tr>
<tr>
<td style="background-image: url(../../Image/3.jpg); width: 478px; height: 21px; text-indent: 4pt;">
<asp:Label ID="Label4" runat="server"
Font-Size="9pt" Text="帖子內(nèi)容:"></asp:Label></td>
</tr>
<tr>
<td style="background-image: url(../../Image/文本.jpg); vertical-align: top; width: 478px; direction: ltr; text-indent: 8pt; height: 54px; text-align: left">
<asp:Label ID="labCardContent" runat="server" Font-Size="9pt"
Width="409px"></asp:Label></td>
</tr>
<tr>
<td style="background-image: url(../../Image/時間.jpg); width: 478px; height: 22px; text-align: right;">
<asp:Label ID="labCardDate" runat="server" Width="180px" Font-Size="9pt"></asp:Label> </td>
</tr>
</table>
</td>
</tr>
<tr>
<td style="width: 176px; background-image: url(../../Image/左4.jpg); height: 363px;">
</td>
<td style="width: 579px; background-image: url(../../Image/背景.jpg); vertical-align: top; text-align: center; height: 363px;">
<asp:DataList ID="dlRevertCard" runat="server" Width="549px" Height="1px">
<ItemTemplate>
<table style="width: 478px" cellpadding="0" cellspacing="0">
<tr>
<td style="width: 478px; background-image: url(../../Image/標(biāo)頭.jpg); text-indent: 2pt; height: 22px;" align="left">
<asp:Label ID="Label6" runat="server" Font-Size="9pt" Text="回帖內(nèi)容"></asp:Label></td>
</tr>
<tr>
<td style="width: 478px; background-image: url(../../Image/文本.jpg); vertical-align: top; text-indent: 8pt; height: 54px;" align="left">
<asp:Label ID="labRevert" runat="server" Enabled="True" Font-Size="9pt"
Width="387px" Text='<%# DataBinder.Eval(Container.DataItem,"RevertCardContent") %>'></asp:Label></td>
</tr>
<tr>
<td style="width: 478px; background-image: url(../../Image/時間.jpg); height: 22px;" align="right">
<asp:Label ID="Label8" runat="server" Font-Size="9pt" Text="回帖日期:"></asp:Label><asp:Label ID="labRevertCardDate" runat="server" Font-Size="9pt" Text='<%# DataBinder.Eval(Container.DataItem,"RevertCardDate") %>'></asp:Label> </td>
</tr>
</table>
</ItemTemplate>
</asp:DataList>
<asp:Label ID="Label5" runat="server" Font-Size="9pt" ForeColor="Red" Text="快速回復(fù)"></asp:Label><br />
<asp:TextBox ID="txtRevertContent" runat="server" Height="65px" Width="480px" TextMode="MultiLine"></asp:TextBox>
<br />
<asp:Button ID="btnRevert" runat="server" Font-Size="9pt" OnClick="btnRevert_Click"
Text="回復(fù)" />
<asp:Button ID="btnCancel" runat="server" Font-Size="9pt" OnClick="btnCancel_Click"
Text="取消" />
<table cellpadding="0" cellspacing="0" style="width: 579px">
<tr>
<td style="font-size: 9pt; width: 579px; text-align: right">
<asp:Label ID="Label7" runat="server" Text="當(dāng)前頁碼為:"></asp:Label>
[
<asp:Label ID="labPage" runat="server" Text="1"></asp:Label>
]
<asp:Label ID="Label6" runat="server" Text="總頁碼為:"></asp:Label>
[
<asp:Label ID="labBackPage" runat="server"></asp:Label>
]<asp:LinkButton ID="lnkbtnOne" runat="server" Font-Underline="False" ForeColor="Red"
OnClick="lnkbtnOne_Click">第一頁</asp:LinkButton>
<asp:LinkButton ID="lnkbtnUp" runat="server" Font-Underline="False" ForeColor="Red"
OnClick="lnkbtnUp_Click">上一頁</asp:LinkButton>
<asp:LinkButton ID="lnkbtnNext" runat="server" Font-Underline="False" ForeColor="Red"
OnClick="lnkbtnNext_Click">下一頁</asp:LinkButton>
<asp:LinkButton ID="lnkbtnBack" runat="server" Font-Underline="False" ForeColor="Red"
OnClick="lnkbtnBack_Click">最后一頁</asp:LinkButton>
</td>
</tr>
</table></td>
</tr>
</table>
<table style="width: 755px; height: 74px;" align="center" cellpadding="0" cellspacing="0">
<tr>
<td style="width: 755px; height: 74px;">
<uc2:BBSFooter ID="BBSFooter1" runat="server" />
</td>
</tr>
</table>
</div>
</form>
</body>
</html>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -