⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 detail.aspx

📁 随着计算机科学的发展
💻 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">您的位置&gt;&gt;<a href=index.aspx>首页</a> &gt;&gt;<a href="">详细新闻</a>&nbsp;</span><br />
        <table width="100%" border="1" cellpadding="0" cellspacing="0" bordercolor="#CCCCCC">
          <tr>
            <td width="11%" bgcolor="#CCCCCC" style="height: 36px">&nbsp;</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">&nbsp; &nbsp; &nbsp; &nbsp;
                                  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                                  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                                <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="提交" Width="83px" />                          
                              </span></td>
                            </tr>
                          </table></td>
                        </tr>
                      </table></td>
                    </tr>
                </table>       &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                <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">&nbsp;</td>
          </tr>
          <tr>
            <td bgcolor="#CCCCCC" style="height: 30px">&nbsp;</td>
            <td bgcolor="#CCCCCC" style="height: 30px">&nbsp;</td>
          </tr>
          <tr>
            <td bgcolor="#CCCCCC" style="height: 106px">&nbsp;</td>
            <td bgcolor="#CCCCCC" style="height: 106px">&nbsp;</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 + -