?? detail.aspx
字號:
?<%@ Page Language="C#" AutoEventWireup="true" CodeFile="detail.aspx.cs" Inherits="detail" %>
<!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 id="Head1" runat="server">
<title>無標題頁</title>
<style type="text/css">
<!--
.STYLE1 {color: #000000}
.STYLE4 {font-size: 14px}
.STYLE5 {font-size: 12pt}
.STYLE13 {font-size: 12px; font-family: "宋體"; color: #333333; }
.STYLE16 {font-size: 14}
.STYLE18 {color: #666666}
.STYLE25 {font-size: 16px; color: #000000; }
.STYLE26 {font-size: 16px; font-family: "宋體"; color: #000000; }
-->
</style>
</head>
<body>
<form runat=server>
<table width="997" border="1" cellpadding="0" cellspacing="0" bordercolor="#CCCCCC">
<!--DWLayoutTable-->
<tr bgcolor="#CCCCCC">
<td width="995" height="93"><span class="STYLE1" style="font-size: 30pt; font-family: 幼圓"><strong>簡單校園新聞發布系統</strong></span></td>
</tr>
</table>
<table width="995" border="1" cellpadding="0" cellspacing="0" bordercolor="#999999">
<!--DWLayoutTable-->
<tr>
<td valign="top" style="height: 264px" colspan="3"> <span class="STYLE4">您的位置>><a href=index.aspx>首頁</a> >><a href="">詳細新聞</a> </span><br />
<table width="100%" border="1" cellpadding="0" cellspacing="0" bordercolor="#CCCCCC">
<tr>
<td width="11%" bgcolor="#CCCCCC" style="height: 36px"> </td>
<td rowspan="3" align="center" style="height: 36px; text-align: left; width: 78%;">
<table width="100%" height="100%">
<tr>
<td width="100%" style="width: 100px; height: 498px; text-align: center;">
<asp:DataList ID="DataList1" runat="server" BackColor="White" BorderColor="#999999"
BorderStyle="None" BorderWidth="1px" CellPadding="3" DataSourceID="SqlDataSource1"
GridLines="Vertical" Width="786px" style="background-color: transparent" >
<FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
<SelectedItemStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
<ItemTemplate>
<asp:Label ID="Label1" runat="server" Font-Names="黑體" Font-Size="16pt" ForeColor="#0066CC"
Height="28px" Text='<%# Eval("newsbiaoti") %>' Width="508px"></asp:Label><br />
<span style="font-size: 10pt; color: orange">發表時間:</span><asp:Label ID="Label2" runat="server"
Font-Size="10pt" ForeColor="#FF9933" Text='<%# Eval("newstime", "{0:G}") %>'
Width="130px"></asp:Label><br />
<hr />
<table style="width: 100%">
<tr>
<td style="width: 101px; height: 23px; text-align: left">
<asp:Label ID="Label3" runat="server" Font-Names="宋體" Font-Size="12pt" Text='<%# Eval("newscontent") %>'
Width="696px"></asp:Label></td>
</tr>
</table>
</ItemTemplate>
<AlternatingItemStyle BackColor="Gainsboro" />
<ItemStyle BackColor="#EEEEEE" ForeColor="Black" />
<HeaderStyle BackColor="#000084" Font-Bold="True" ForeColor="White" />
</asp:DataList></td>
</tr>
</table>
<asp:Label ID="Label4" runat="server" Font-Bold="False" Font-Names="黑體"
Font-Size="Large" ForeColor="White" Text="全部評論:" Width="795px" BackColor="#C0C0FF"></asp:Label>
<table style="width: 100%" cellpadding="1" cellspacing="1">
<tr>
<td style="width: 100px; height: 482px"><table width="100%" border="1" cellspacing="0" cellpadding="1">
<tr>
<td style="height: 708px"><asp:DataList ID="DataList2" runat="server" BackColor="White" BorderColor="#DEDFDE"
BorderWidth="1px" CellPadding="4" DataKeyField="userId"
ForeColor="Black" Width="784px" Height="466px" BorderStyle="None" GridLines="Vertical" style="background-color: gray">
<FooterStyle BackColor="#CCCC99" />
<SelectedItemStyle BackColor="#CE5D5A" ForeColor="White" Font-Bold="True" />
<ItemTemplate>
<table border="1" style="font-size: 12pt; width: 100%; color: blue; font-family: 宋體">
<tr>
<td><asp:Label ID="userIdLabel" runat="server" Text='<%# Eval("userId") %>' style="font-size: 12pt; color: blue; font-family: 宋體"></asp:Label>
樓</td>
<td> 用戶名:
<asp:Label ID="userNameLabel" runat="server" Text='<%# Eval("userName") %>'></asp:Label></td>
<td> 發表時間:
<asp:Label ID="postTimeLabel" runat="server" Text='<%# Eval("postTime") %>'
></asp:Label></td>
</tr>
<tr>
<td colspan="3"> 留言內容:</td>
</tr>
<tr>
<td colspan="3" style="height: 71px"><asp:Label ID="contentLabel" runat="server" Height="69px" Text='<%# Eval("content") %>'
Width="740px"></asp:Label></td>
</tr>
</table>
</ItemTemplate>
<AlternatingItemStyle BackColor="White" />
<HeaderStyle BackColor="#6B696B" Font-Bold="True" ForeColor="White" />
<ItemStyle BackColor="#F7F7DE" />
</asp:DataList></td>
</tr>
<tr>
<td style="height: 235px"><table width="100%" border="1" cellpadding="0" bordercolor="#FFFFFF">
<tr>
<td style="height: 15px"><span class="STYLE13 STYLE16 STYLE18"><span class="STYLE25">發表評論:</span></span></td>
</tr>
<tr>
<td><span class="STYLE13 STYLE16 STYLE18" style="width: 100px"><span class="STYLE25" style="width: 100px;">
<asp:TextBox ID="txtCon" runat="server" Height="142px" TextMode="MultiLine" Width="510px"></asp:TextBox>
</span></span></td>
</tr>
<tr>
<td style="height: 24px"><span class="STYLE26" style="width: 100px">用戶名:
<asp:TextBox ID="txtname" runat="server"></asp:TextBox>
</span></td>
</tr>
<tr>
<td style="height: 24px"><span class="STYLE26" style="width: 100px; height: 23px">
<asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="提交" Width="83px" />
</span></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table>?
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:loginConnectionString %>"
SelectCommand="SELECT * FROM [news] WHERE ([newsid] = @newsid)">
<SelectParameters>
<asp:QueryStringParameter Name="newsid" QueryStringField="newsid" Type="Int32" />
</SelectParameters>
</asp:SqlDataSource> </td>
<td width="11%" bgcolor="#CCCCCC" style="height: 36px"> </td>
</tr>
<tr>
<td bgcolor="#CCCCCC" style="height: 30px"> </td>
<td bgcolor="#CCCCCC" style="height: 30px"> </td>
</tr>
<tr>
<td bgcolor="#CCCCCC" style="height: 106px"> </td>
<td bgcolor="#CCCCCC" style="height: 106px"> </td>
</tr>
</table></td>
</tr>
<tr>
<td colspan="3" valign="top" style="height: 69px"><div align="center"><span class="STYLE5" style="font-family: 宋體">All Rights reserved ?<br />
新聞發布系統 版權所有</span> </div></td>
</tr>
<tr><td style="height: 20px"></td><td style="width: 404px; height: 20px;"></td>
<td style="height: 20px"></td>
</tr>
</table>
</form>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -