reply2.aspx
资源名称:Visual.rar [点击查看]
上传用户:yiyuerguo
上传日期:2014-09-27
资源大小:3781k
文件大小:4k
源码类别:
C#编程
开发平台:
Others
- <%@ Page language="c#" Codebehind="reply2.aspx.cs" AutoEventWireup="false" Inherits="mbord5.reply2" %>
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
- <HTML>
- <HEAD>
- <title>reply2</title>
- <meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
- <meta name="CODE_LANGUAGE" Content="C#">
- <meta name="vs_defaultClientScript" content="JavaScript">
- <meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
- </HEAD>
- <body MS_POSITIONING="GridLayout">
- <form id="Form1" method="post" runat="server">
- <FONT face="宋体">
- <TABLE id="Table1" style="Z-INDEX: 101; LEFT: 64px; POSITION: absolute; TOP: 16px" borderColor="#9999cc"
- cellSpacing="0" cellPadding="0" width="80%" bgColor="#dfe9f9" border="1">
- <TR class="fohead">
- <TH width="20%" bgColor="#948ed7">
- <FONT size="2">作者</FONT></TH>
- <TH width="80%" bgColor="#9999cc">
- <FONT size="2">内容</FONT></TH></TR>
- <TR class="folight">
- <TD align="center" rowSpan="2">
- <%= "<a href=mailto:"+dr["email"]+">"+dr["name"]+"</a>" %>
- <BR>
- <FONT size="1">
- <BR>
- <%= dr["date"]%>
- </FONT>
- </TD>
- <TD><B><FONT size="2">主题:</FONT> </B>
- <%=dr["subject"] %>
- </TD>
- </TR>
- <TR class="folight">
- <TD><PRE><%=dr["message"] %></PRE>
- </TD>
- </TR>
- <% //列出对主题的所有回复记录
- int no = rs.Tables["reply"].Rows.Count ;
- if(no>0)
- {
- for(int j=0 ;j<no ; j++)
- {
- rd = rs.Tables["reply"].Rows[j] ;
- %>
- <TR class="fodark">
- <TD align="center"><%="<a href=mailto:"+rd["email"]+">"+rd["name"]+"</a>" %>
- <BR>
- <FONT size="1">
- <BR>
- <%= rd["date"]%>
- </FONT>
- </TD>
- <TD><PRE><%=rd["message"] %></PRE>
- </TD>
- </TR>
- <%
- }
- }
- %>
- </TABLE>
- <TABLE id="Table2" style="Z-INDEX: 104; LEFT: 64px; POSITION: absolute; TOP: 256px" width="80%"
- align="center" bgColor="#cec9e7" border="0">
- <TR bgColor="#7165de">
- <TD class="fohead" colSpan="2"><FONT color="#ffffff" size="2"><STRONG>回复</STRONG></FONT></TD>
- </TR>
- <TR class="folight">
- <TD><FONT size="2">大名:</FONT></TD>
- <TD>
- <asp:textbox id="name" runat="server" text=""></asp:textbox> <FONT color="#ff0000">
- *</FONT>
- </TD>
- </TR>
- <TR class="folight">
- <TD><FONT size="2">E-Mail :</FONT></TD>
- <TD>
- <asp:textbox id="email" runat="server" text=""></asp:textbox> <FONT color="#ff0000">
- *</FONT>
- </TD>
- </TR>
- <TR class="folight">
- <TD><FONT size="2">主题:</FONT></TD>
- <TD>
- <asp:textbox id="subject" runat="server" test="" width="200"></asp:textbox>
- <FONT color="#ff0000">*</FONT>
- </TD>
- </TR>
- <TR class="folight">
- <TD><FONT size="2">内容 :</FONT></TD>
- <TD>
- <asp:TextBox id="message" runat="server" Columns="30" Rows="15" TextMode="MultiLine"></asp:TextBox></TD>
- </TR>
- <TR class="folight">
- <TD colSpan="2">
- <asp:Button id="Button1" runat="server" Text="提交"></asp:Button>
- </TD>
- </TR>
- </TABLE>
- <asp:label id="errmess" style="Z-INDEX: 103; LEFT: 16px; COLOR: #ff0000; POSITION: absolute; TOP: 216px"
- runat="server" text=""></asp:label></FONT>
- <DIV style="Z-INDEX: 102; LEFT: 208px; POSITION: absolute; TOP: 160px" ms_positioning="text2D"><A href="forum2.aspx"><FONT size="2">返回</FONT></A>
- <BR>
- <FONT size="2">回复该篇文章</FONT>
- </DIV>
- </form>
- </body>
- </HTML>