Discussion:
Communication Between Layers
Asif Raza Ashraf
2007-02-21 08:11:06 UTC
Permalink
Hi,

I am working on a Web application which is divided into three Layers. DAL,
BLL and Presentation.

In the Presentation Layer we are using the Asp.Net 2.0 form view controls
with the Object Data Source which eventually calls the methods from the BLL
which performs some validation and apply business rules and then go for DAL.
The problem is that we are trying to use the minimum code in the
Presentation Layer and use the ObjectDataSource with some of our extended
controls. But now comes the question that how we should Pass the messages
between the BLL and The Presentation. We are passing the Data using custom
Entity classes and these classes holds only the entity's Data information.

For Example Let us say that User has entered Data on a form view which after
Client Side Validation passes to the BLL through the Object Data Source. Now
there is a Business Rule Violation and we want to inform the User about that
how can we do this. Because the only communication is through the Object
Data Source.

My primary question is that what is the Best methodology to communicate the
Messages and Errors between the Layers. What I want is to handle all these
information displayed to the user through the Master page not from the
Individual Pages.


Regards,
--
Asif Raza Ashraf

===================================
This list is hosted by DevelopMentorĀ® http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com
Loading...