Question for discussion on asp.net and patterns and framework

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
 
N

Nick

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top