当前位置: 首页 > 图文教程 > 网络编程 > ASP > 用asp.net写的论坛程序

ASP
用EasyMailObject组件处理Exchange邮件源代码(6)
用EasyMailObject组件处理Exchange邮件源代码(7)
利用ASP和Access数据库制作局域网网上答题系统
用ASP开发试题库与在线考试系统(1)
用ASP开发试题库与在线考试系统(2)
用ASP开发试题库与在线考试系统(3)
用ASP开发试题库与在线考试系统(4)
用ASP开发试题库与在线考试系统(5)
用ASP开发试题库与在线考试系统(6)
用ASP开发试题库与在线考试系统(7)
用ASP开发试题库与在线考试系统(8)
综合的判断用户输入的合法性的函数
三层动态下拉菜单的例子
将你的网站设置为客户的信任站点--VB方案
论坛中有新贴子功能的实现
ASP 编程中 15 个非常有用的例子
一个的无组件上传的ASP代码
利用ASP实现三个强大功能之一
利用ASP实现三个强大功能之二
利用ASP实现三个强大功能之三

ASP 中的 用asp.net写的论坛程序


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-11-03   浏览: 38 ::
收藏到网摘: n/a

  这是一个用asp.net写的论坛程序,虽然简单但可以运行。

这个程序的编程思想其实还是基本延续了asp的方式,如果让那只大鸟儿看见可能要嘘之以鼻。但实际上这种方式对于asp程序向asp.net的快速移植还是有用的。如果你对这种移植不屑那也没办法,这个贴子就算给asp.net刚入门的小虾们开开眼。

这个例子包含3部分

1)forum.aspx-论坛主页。

2)reply.aspx-当在论坛主页中点击一个贴子时调用,显示贴子详细内容。

3)postmessage.aspx-上贴时调用,将内容保存入数据库

数据库结构   Table - newpost :This table will contain the New Topic posted messages
postid (primary key)  The unique id for each new topic.
name The name of the author of the message.
email E-mail address of the author.
subject Subject of the message.
ip IP address of the author.
date Date / Time of the Post
message Message posted.
replies Number of replies to the post (if any)
views Number of times the message has been viewed.  


Table - reply :This table will contain the Replies made to the new topics.
replyid (primary key) The unique id for each reply.
name Name of the author.
email E-mail address of the author.
subject Subject of the post
ip IP of the author.
date Date / Time of post.
message Message posted.
postid postid from the "newpost" table for which this message is a reply.