這是一個用asp.net寫的論壇程序,雖然簡單但可以運行。 這個程序的編程思想其實還是基本延續(xù)了asp的方式,如果讓那只大鳥兒看見可能要噓之以鼻。但實際上這種方式對于asp程序向asp.net的快速移植還是有用的。如果你對這種移植不屑那也沒辦法,這個貼子就算給asp.net剛?cè)腴T的小蝦們開開眼。 這個例子包含3部分 1)forum.aspx-論壇主頁。 2)reply.aspx-當(dāng)在論壇主頁中點擊一個貼子時調(diào)用,顯示貼子詳細內(nèi)容。 3)postmessage.aspx-上貼時調(diào)用,將內(nèi)容保存入數(shù)據(jù)庫 數(shù)據(jù)庫結(jié)構(gòu) table - newpost :this table will contain the new topic posted messagespostid (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 postmessagemessage 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 postipip of the author.datedate / time of post.messagemessage posted.postidpostid from the "newpost" table for which this message is a reply.