Question for discussion on asp.net and patterns and framework

  • Thread starter Thread starter William Gower
  • Start date Start date
W

William Gower

The DataAccessLayer retrieves a customer record from a table in the
database. It passes the customer object back to the business object which
passes it back to the controller. The web form has fields that show all the
attributes of the customer object. How should the fields on the web form
get populated with the data? What layer should do it?


web form -------> UI Controller ----------> Business Object --------->
DataAccessLayer



Business Entity
 
The UI Controller or the aspx page itself (assuming the controller is not
the same) would associate the values with those of the form. If you keep
this functionality in a controller you can test it more easily however.

Nick.
 
Back
Top