top
Loading...
用asp.net寫的論壇程序
這是一個用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.
nameThe name of the author of the message.
emailE-mail address of the author.
subjectSubject of the message.
ipIP address of the author.
dateDate / Time of the Post
messageMessage posted.
repliesNumber of replies to the post (if any)
viewsNumber 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.
nameName of the author.
emailE-mail address of the author.
subjectSubject of the post
ipIP of the author.
dateDate / Time of post.
messageMessage posted.
postidpostid from the "newpost" table for which this message is a reply.


北斗有巢氏 有巢氏北斗