Groups | Blog | Home
all groups > asp.net > july 2004 >

asp.net : Question for discussion on asp.net and patterns and framework


William Gower
7/31/2004 9:06:58 PM
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

Nick
8/1/2004 10:13:41 AM
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.

[quoted text, click to view]

AddThis Social Bookmark Button