reply2.aspx
上传用户:yiyuerguo
上传日期:2014-09-27
资源大小:3781k
文件大小:4k
源码类别:

C#编程

开发平台:

Others

  1. <%@ Page language="c#" Codebehind="reply2.aspx.cs" AutoEventWireup="false" Inherits="mbord5.reply2" %>
  2. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
  3. <HTML>
  4. <HEAD>
  5. <title>reply2</title>
  6. <meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
  7. <meta name="CODE_LANGUAGE" Content="C#">
  8. <meta name="vs_defaultClientScript" content="JavaScript">
  9. <meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
  10. </HEAD>
  11. <body MS_POSITIONING="GridLayout">
  12. <form id="Form1" method="post" runat="server">
  13. <FONT face="宋体">
  14. <TABLE id="Table1" style="Z-INDEX: 101; LEFT: 64px; POSITION: absolute; TOP: 16px" borderColor="#9999cc"
  15. cellSpacing="0" cellPadding="0" width="80%" bgColor="#dfe9f9" border="1">
  16. <TR class="fohead">
  17. <TH width="20%" bgColor="#948ed7">
  18. <FONT size="2">作者</FONT></TH>
  19. <TH width="80%" bgColor="#9999cc">
  20. <FONT size="2">内容</FONT></TH></TR>
  21. <TR class="folight">
  22. <TD align="center" rowSpan="2">
  23. <%= "<a href=mailto:"+dr["email"]+">"+dr["name"]+"</a>" %>
  24. <BR>
  25. <FONT size="1">
  26. <BR>
  27. <%= dr["date"]%>
  28. </FONT>
  29. </TD>
  30. <TD><B><FONT size="2">主题:</FONT> </B>
  31. <%=dr["subject"] %>
  32. </TD>
  33. </TR>
  34. <TR class="folight">
  35. <TD><PRE><%=dr["message"] %></PRE>
  36. </TD>
  37. </TR>
  38. <% //列出对主题的所有回复记录
  39.       int no = rs.Tables["reply"].Rows.Count ;
  40.       if(no>0)
  41.       {
  42.        for(int j=0 ;j<no ; j++)
  43.        {
  44.            rd = rs.Tables["reply"].Rows[j] ;
  45.    %>
  46. <TR class="fodark">
  47. <TD align="center"><%="<a href=mailto:"+rd["email"]+">"+rd["name"]+"</a>" %>
  48. <BR>
  49. <FONT size="1">
  50. <BR>
  51. <%= rd["date"]%>
  52. </FONT>
  53. </TD>
  54. <TD><PRE><%=rd["message"] %></PRE>
  55. </TD>
  56. </TR>
  57. <%
  58.       }
  59.      }
  60.    %>
  61. </TABLE>
  62. <TABLE id="Table2" style="Z-INDEX: 104; LEFT: 64px; POSITION: absolute; TOP: 256px" width="80%"
  63. align="center" bgColor="#cec9e7" border="0">
  64. <TR bgColor="#7165de">
  65. <TD class="fohead" colSpan="2"><FONT color="#ffffff" size="2"><STRONG>回复</STRONG></FONT></TD>
  66. </TR>
  67. <TR class="folight">
  68. <TD><FONT size="2">大名:</FONT></TD>
  69. <TD>
  70. <asp:textbox id="name" runat="server" text=""></asp:textbox>&nbsp;&nbsp;&nbsp; <FONT color="#ff0000">
  71. *</FONT>
  72. </TD>
  73. </TR>
  74. <TR class="folight">
  75. <TD><FONT size="2">E-Mail&nbsp;:</FONT></TD>
  76. <TD>
  77. <asp:textbox id="email" runat="server" text=""></asp:textbox>&nbsp;&nbsp;&nbsp; <FONT color="#ff0000">
  78. *</FONT>
  79. </TD>
  80. </TR>
  81. <TR class="folight">
  82. <TD><FONT size="2">主题:</FONT></TD>
  83. <TD>
  84. <asp:textbox id="subject" runat="server" test="" width="200"></asp:textbox>&nbsp;&nbsp;&nbsp;
  85. <FONT color="#ff0000">*</FONT>
  86. </TD>
  87. </TR>
  88. <TR class="folight">
  89. <TD><FONT size="2">内容&nbsp;:</FONT></TD>
  90. <TD>
  91. <asp:TextBox id="message" runat="server" Columns="30" Rows="15" TextMode="MultiLine"></asp:TextBox></TD>
  92. </TR>
  93. <TR class="folight">
  94. <TD colSpan="2">
  95. <asp:Button id="Button1" runat="server" Text="提交"></asp:Button>
  96. </TD>
  97. </TR>
  98. </TABLE>
  99. <asp:label id="errmess" style="Z-INDEX: 103; LEFT: 16px; COLOR: #ff0000; POSITION: absolute; TOP: 216px"
  100. runat="server" text=""></asp:label></FONT>
  101. <DIV style="Z-INDEX: 102; LEFT: 208px; POSITION: absolute; TOP: 160px" ms_positioning="text2D"><A href="forum2.aspx"><FONT size="2">返回</FONT></A>
  102. <BR>
  103. <FONT size="2">回复该篇文章</FONT>
  104. </DIV>
  105. </form>
  106. </body>
  107. </HTML>