A simple Asp.net three-layer message board, which can leave messages, reply and manage functions (2) System functions (1) Page display layer
•Message page: The default home page, where users can post new messages. The page also displays the top n most recent messages, and users can reply.
•Reply message page: When users reply to a message, they go to this page to write the reply content, and then return to the message page.
•Browse all messages page: All messages are displayed in this page. Users can post new messages and reply to messages here.
•Administrator control page: Administrator can browse all messages and reply messages, and can change and delete content (when changing, the system will indicate that it was changed by the administrator under the changed content; when deleting, a trigger will be created in the DB to The deleted content is written into a table - such as DeleteItems, for administrators to review later).
(2) User interface layer (3) Business logic layer (4) Database processing layer
The source code was provided by an anonymous netizen. It was originally a website file and had some minor bugs. It was converted into a webapplication project and some bugs were fixed.
Before running the logical layer and data layer under the MVC folder, you need to set the physical path of the database in web.config.
Expand