0000003CJG000000000000

xiaoxiao2021-03-06  17

"Three-layer structure" is "appearance layer", "business logic layer", "database layer"

Assume that a message board is made in such a structure, then it should be:

# 留言 板 page The appearance code is stored in the .aspx file.

# When the user clicks on the submission button on the page, first pass the text information to a LeaveWord class object.

(Definition of LeaveWord class is packaged to "Business Logic")

# After letting this object execute post () to send message information to the database

With a simple code is: