PC6下载站

分类分类

用asp.net写的论坛程序--浏览贴及回复

关注+2004-11-07作者:蓝点

2) reply.aspx : The topic viewing and replying page



<%@ Page Language="C#" EnableSessionState="False" Debug="True" %>

<%@ Import Namespace="System" %>

<%@ Assembly Name="System.Data" %>

<%@ Import Namespace="System.Data" %>

<%@ Import Namespace="System.Data.ADO" %>



Post New Topic.

<%-- These are the imported assemblies and namespaces needed --%>







<%-- Include a header file 'header.inc' --%>














<%-- Below I am encapsulating the email of the author over the name of the author

so that when you click on the author a e-mail gets sent to him

Also I am geting the DateTime from the DataBase and Displaying the Date and Time separately --%>











<%-- Get all the replies to the Original post and show them --%>

<% int no = rs.Tables["reply"].Rows.Count ;

if(no>0)

{

for(int j=0 ;j
{

DataRow rd = rs.Tables["reply"].Rows[j] ;

%>









<%

}

}

%>

Author Name Message
<%= ""+dr["name"]+"" %>


<%= dr["date"].ToString().ToDateTime().ToShortDateString() %>


<%= dr["date"].ToString().ToDateTime().ToShortTimeString() %>


Subject: <%=dr["subject"] %>
<%=dr["message"] %>
<%=""+rd["name"]+"" %>


<%= rd["date"].ToString().ToDateTime().ToShortDateString() %>


<%= rd["date"].ToString().ToDateTime().ToShortTimeString() %>


<%=rd["message"] %>




Click Here to go to back to Forum.


Reply to the Above Post.




















































Reply to the Post
Name :    *
E-Mail :    *
Subject:    *

Message :


Columns="30" Rows="15" TextMode="MultiLine">



















展开全部

相关文章

更多+相同厂商

热门推荐

  • 最新排行
  • 最热排行
  • 评分最高
排行榜

    点击查看更多

      点击查看更多

        点击查看更多

        说两句网友评论

          我要评论...
          取消