您目前尚未登陆,请选择【登陆】或【注册
首页->留言本类->学习型留言板源码>>Messages.aspx>>源码在线查看
温馨提示:代码在线浏览功能只能做为源码浏览参考,如果想更进一步了解该代码请下载:学习型留言板源码
当前文件:文件类型 StudyLeaveWord/Messages.aspx打开代码结构图
普通视图
		            
1<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Messages.aspx.cs" Inherits="Messages" %> 2 3<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 4 5<html xmlns="http://www.w3.org/1999/xhtml" > 6<head runat="server"> 7 <title>无标题页</title> 8</head> 9<body style="font-size:9pt"> 10 <form id="form1" runat="server"> 11 <div> 12 <table align="center" border="0" cellpadding="0" cellspacing="0" style="width: 780px"> 13 <tr> 14 <td style="font-weight: bold; font-size: x-large; vertical-align: middle; width: 780px; 15 color: #ffffff; height: 50px; background-color: #669900; text-align: center"> 16 留言内容</td> 17 </tr> 18 <tr> 19 <td style="width: 780px; border-right: #006600 thin solid; border-left: #006600 thin solid;"> 20 <asp:DataList ID="DataList1" runat="server" DataSourceID="sds" Width="780px"> 21 <ItemTemplate> 22 <table border="0" cellpadding="0" cellspacing="0" style="width: 780px"> 23 <tr> 24 <td style="vertical-align: middle; width: 100px; text-align: right; height: 25px;"> 25 留言人:</td> 26 <td style="vertical-align: middle; width: 200px; text-align: left; height: 25px;"> 27 <asp:Label ID="lblUserName" runat="server" Text='<%# Eval("UserName") %>' Font-Bold="True" ForeColor="Maroon"></asp:Label></td> 28 <td style="vertical-align: middle; width: 200px; text-align: right; height: 25px;"> 29 留言时间:</td> 30 <td style="vertical-align: middle; width: 280px; text-align: left; height: 25px;"> 31 <asp:Label ID="lblTime" runat="server" Text='<%# Eval("Times") %>'></asp:Label></td> 32 </tr> 33 <tr> 34 <td style="vertical-align: middle; width: 680px; text-align: right; height: 25px;"> 35 留言主题:</td> 36 <td colspan="3" style="vertical-align: middle; width: 680px; text-align: left; height: 25px;"> 37 <asp:Label ID="lblTitle" runat="server" Text='<%# Eval("Title") %>'></asp:Label></td> 38 </tr> 39 <tr> 40 <td style="vertical-align: middle; width: 100px; text-align: right"> 41 留言内容:</td> 42 <td colspan="3" style="vertical-align: middle; width: 680px; text-align: left"> 43 <asp:TextBox ID="TextBox1" runat="server" Text='<%# Eval("Content") %>' TextMode="MultiLine" 44 Width="680px" Height="200px" ReadOnly="True"></asp:TextBox></td> 45 </tr> 46 </table><div style="width: 780px; height: 1px"><hr style="border-right: #336633 thin solid; border-top: #336633 thin solid; border-left: #336633 thin solid; border-bottom: #336633 thin solid"/></div> 47 <br /> 48 </ItemTemplate> 49 </asp:DataList><asp:SqlDataSource ID="sds" runat="server" ConnectionString="<%$ ConnectionStrings:leaveWordConnectionString %>" 50 SelectCommand="SELECT [UserName], [Title], [Content], [Times] FROM [messages] ORDER BY [Times] DESC"></asp:SqlDataSource> 51 </td> 52 </tr> 53 <tr> 54 <td style="width: 780px; border-right: #006600 thin solid; border-left: #006600 thin solid; border-bottom: #006600 thin solid;"> 55 <asp:Button ID="btnHoldOn" runat="server" OnClick="btnHoldOn_Click" Text="继续留言" /></td> 56 </tr> 57 </table> 58 59 </div> 60 </form> 61</body> 62</html> 63
还没有找到您心仪的内容?请用.net源码大搜捕
代码片断 打包下载该项目完整源码:学习型留言板源码
51Aspx.com 版权所有 CopyRight © 2000-2008. 京ICP备06046876号