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

ASP
ASP实例:读取xml文件的程序
asp实现rar压缩和解压缩源代码
关于ASP中脚本执行顺序的讲解
用asp程序读取网站的alexa世界排名
初学ASP编程易犯的一个错误要注意
ASP实现SQL语句日期格式的加减运算
通过启动脚本来感受ASP的力量
ASP SCRIPT: 计数器(使用GrapShot组件)
学以致用 驳“ASP低能论”
ASP分页显示Recordset数据
ASP编程代码:隐藏图片的真实地址
ASP网站Server object error的解决办法
用ASP对网页进行限制性的访问
把网页中的电话号码生成图片的ASP程序
ASP实现文件直接下载
用ASP显示ACCESS数据库的的GIF图象
ASP分页和日期格式化为RFC822格式的办法
实例:ASP与ACCESS链接
ASP程序直接连接MYSQL数据库
ASP连接MSSQL的错误: 拒绝访问

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


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-11-03   浏览: 66 ::
收藏到网摘: 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.