Comment.aspx
资源名称:xwfbxt.rar [点击查看]
上传用户:tongfeicq
上传日期:2022-07-20
资源大小:2856k
文件大小:8k
源码类别:
.net编程
开发平台:
Visual C++
- <%@ page language="C#" autoeventwireup="true" inherits="Comment, oyaya" %>
- <%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
- <%@ Register Src="include/search.ascx" TagName="search" TagPrefix="uc2" %>
- <%@ Register Src="include/top.ascx" TagName="top" TagPrefix="uc1" %>
- <%@ Register Src="include/bottom.ascx" TagName="bottom" TagPrefix="uc0" %>
- <!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>
- <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
- <link href="include/css.css" rel="stylesheet" type="text/css" />
- </head>
- <body>
- <form id="form1" runat="server">
- <uc1:top ID="Top1" runat="server" />
- <div align="center">
- <table border="0" cellpadding="0" cellspacing="0" width="900" style="margin-top:8px;">
- <tr>
- <td width="20" style="height: 19px"><img src="images/location-items.gif" /></td>
- <td colspan="2" style="text-align: left; height: 20px; line-height:20px;"> <a href="index.aspx">网站首页</a> -> <asp:Label ID="Label2" runat="server">全部评论</asp:Label></td>
- </tr>
- </table>
- <div style="width:900px;">
- <div style="border-right: #a2d0e5 1px solid; border-top: #a2d0e5 1px solid; float: left;
- border-left: #a2d0e5 1px solid; width: 639px; border-bottom: #a2d0e5 1px solid;">
- <div style="width: 100%; height: 50px; font-weight: bold; font-size: 15px; line-height: 50px; text-align: center;">
- <asp:HyperLink ID="HyperLink1" runat="server">标题</asp:HyperLink></div>
- <div style="width: 100%; height: 30px; font-size: 12px; color: darkgray; line-height: 30px; border-bottom: gainsboro 1px solid; text-align: center;">
- <asp:Label ID="Label3" runat="server" Text="时间" CssClass="zuoyou"></asp:Label>
- <asp:Label ID="Label4" runat="server" Text="来源" CssClass="zuoyou"></asp:Label>
- <asp:Label ID="Label5" runat="server" Text="作者" CssClass="zuoyou"></asp:Label>
- <asp:Label ID="Label6" runat="server" Text="人气" CssClass="zuoyou"></asp:Label>
- <asp:Label ID="Label12" runat="server" Text="共有评论"></asp:Label></div>
- <asp:DataList ID="DataList2" runat="server">
- <ItemTemplate>
- <table border="0" cellpadding="5" cellspacing="0" style="border-bottom: gainsboro 1px solid; width: 638px;">
- <tr>
- <td style="text-indent: 20px; text-align: left; color: #0066cc;">
- <%=oyaya.web_name.ToString() %>网友:<asp:Label ID="Label8" runat="server" Text='<%# Eval("username") %>'></asp:Label>
- 于<asp:Label ID="Label10" runat="server" Text='<%# Eval("data") %>'></asp:Label>评论道:</td>
- </tr>
- <tr>
- <td style="text-indent: 20px; text-align: left; padding-right: 5px; padding-left: 5px; padding-bottom: 5px; padding-top: 5px;">
- <asp:Label ID="Label9" runat="server" Text='<%# Eval("conent") %>'></asp:Label></td>
- </tr>
- </table>
- </ItemTemplate>
- </asp:DataList>
- <p><webdiyer:aspnetpager id="AspNetPager1" runat="server" horizontalalign="Center" onpagechanged="AspNetPager1_PageChanged"
- width="98%" CssClass="anpager" CurrentPageButtonClass="cpb" UrlPaging="True" FirstPageText="首页" LastPageText="尾页" NextPageText="下一页" PrevPageText="上一页" CustomInfoStyle="" AlwaysShow="True" EnableUrlRewriting="True" ReverseUrlPageIndex="True"></webdiyer:aspnetpager></p>
- <table style="margin-top: 20px; width: 639px; margin-bottom: 20px;" border="0" cellspacing="0">
- <tr>
- <td colspan="4" style="background-image: url(images/indexback.gif); height: 25px; font-weight: bold; text-indent: 20px; text-align: left;">
- 发表评论</td>
- </tr>
- <tr>
- <td style="width: 159px; height: 40px">
- 名称:<asp:TextBox ID="TextBox1" runat="server" Width="96px" CssClass="TextBox"></asp:TextBox></td>
- <td style="width: 161px;">
- 验证码:<asp:TextBox ID="TextBox2" runat="server" Width="53px" CssClass="TextBox"></asp:TextBox>
- </td>
- <td style="width: 104px">
- <asp:ImageButton ID="ImageButton1" runat="server" CausesValidation="False" ImageUrl="~/include/checkcode.aspx"
- OnClick="ImageButton1_Click" /></td>
- <td style="text-align: left; width: 301px;">
- <asp:Button ID="Button1" runat="server" Text="发表评论" CssClass="Button" OnClick="Button1_Click" />
- <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TextBox1"
- ErrorMessage="名称?"></asp:RequiredFieldValidator>
- <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="TextBox2"
- ErrorMessage="验证码?"></asp:RequiredFieldValidator>
- <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="TextBox3"
- ErrorMessage="评论内容?"></asp:RequiredFieldValidator>
- </td>
- </tr>
- <tr>
- <td colspan="4">
- <asp:TextBox ID="TextBox3" runat="server" TextMode="MultiLine" Height="70px" CssClass="TextBox" Width="600px"></asp:TextBox></td>
- </tr>
- </table>
- </div>
- <div style="float: right; width: 259px; ">
- <table border="0" cellpadding="0" cellspacing="0" class="gonggao" width="250" style="margin-top: 10px; float: right;">
- <tr>
- <td class="gonggaoback1" style="height: 30px">
- <img src="images/index1_r33_c16.gif" /></td>
- <td class="gonggaoback2" style="height: 30px">
- 评论TOP20</td>
- <td class="gonggaoback3" style="height: 30px">
- </td>
- </tr>
- <tr>
- <td colspan="3" rowspan="2" style="text-align: left">
- <asp:DataList ID="DataList1" runat="server">
- <ItemTemplate>
- <table>
- <tr>
- <td><img src="images/dot0.gif" /></td>
- <td style="width: 240px; text-align: left">
- <a href="p<%# Eval("id") %>.aspx" class="mainlink"><%#((DataBinder.Eval(Container.DataItem, "title" ).ToString().Length<16)?DataBinder.Eval(Container.DataItem, "title" ).ToString():DataBinder.Eval(Container.DataItem, "title" ).ToString().Substring(0,16)+"...")%></a></td>
- </tr>
- </table>
- </ItemTemplate>
- </asp:DataList></td>
- </tr>
- <tr>
- </tr>
- </table>
- </div>
- </div>
- <uc0:bottom id="bottom" runat="server">
- </uc0:bottom>
- </div>
- </form>
- </body>
- </html>