用asp.net寫的論壇程序
這是一個用asp.net寫的論壇程序,雖然簡單但可以運行。
這個程序的編程思想其實還是基本延續了asp的方式,如果讓那只大鳥兒看見可能要噓之以鼻。但實際上這種方式對于asp程序向asp.net的快速移植還是有用的。如果你對這種移植不屑那也沒辦法,這個貼子就算給asp.net剛入門的小蝦們開開眼。
這個例子包含3部分
1)forum.aspx-論壇主頁。
2)reply.aspx-當在論壇主頁中點擊一個貼子時調用,顯示貼子詳細內容。
3)postmessage.aspx-上貼時調用,將內容保存入數據庫
數據庫結構
這個程序的編程思想其實還是基本延續了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. |
| 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. |
| 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. |