473,770 Members | 1,644 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Presentation layer depends on ????

rbg
Hi,

I am trying to understand the layering concept with the ASP.NET 2.0
apps.

I have a ASP.NET 2.0 Web app which has 3 layers

Presentation layer which contains UI elements and Input validation
logic

Business layer which contains Business Rules, Business Objects and
Business Workflow

DataTier which contains database tables and stored procedures

I understand that each layer is a independent entity and can be
considered a blackbox by all other layers. Thus each layer can be built
independently of the other layers.

But in the above scenario can somebody tell me does the Presentation
layer depend on the Business layer only or does it depend on the
DataTier as well since there is Input validation involved in the
Presentation layer????

Also does the Business layer depend on the DataTier???

Thanks

Jul 3 '06 #1
1 1615
Hello rbg,

I am not sure what you mean exactly by "depend on", but simply put, the Presentation
Layer "uses" the business layer, which in turn uses the "Data Layer".

The Presentation layer should never communicate directly with the Data layer,
if it does, then you should re-think your architecture. The business layer
should be the is the only one that communicates directly with both as it
carries user input and commands from the presentation layer to the data layer
and sends back the resulting data from the Data layer to the presentation
layer. The business layer also functions as the thinking part of your application
with some functions not needing any database access, like calculations, business
logic descision making, data conversions and manipulation, file access ...etc

The presentation layer is best reserved for receiving and validating user
input in addition to formatting the output on the screen.

I hope this helps.
Hi,

I am trying to understand the layering concept with the ASP.NET 2.0
apps.

I have a ASP.NET 2.0 Web app which has 3 layers

Presentation layer which contains UI elements and Input validation
logic

Business layer which contains Business Rules, Business Objects and
Business Workflow

DataTier which contains database tables and stored procedures

I understand that each layer is a independent entity and can be
considered a blackbox by all other layers. Thus each layer can be
built independently of the other layers.

But in the above scenario can somebody tell me does the Presentation
layer depend on the Business layer only or does it depend on the
DataTier as well since there is Input validation involved in the
Presentation layer????

Also does the Business layer depend on the DataTier???

Thanks

Jul 3 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
1974
by: MG | last post by:
A Newbie question perhaps, but here goes: Is it possible to seaprate the presentatieon layer, i.e., the html, from the application itself. For example, our developer has told us that we cannot do immeidate changes to user interface becasue the presentaion layer is bound up with the rest of the dll and to eextract that out of the app, would take ages. and so any changes would be incorproated into the next buiild compilation.
11
9113
by: Michael Rodriguez | last post by:
I have a windows form that makes a call to my BLL to get some data. The windows form has a progress bar component that I would like updated as the data retrieval takes place. However, strictly speaking, the BLL is not supposed to know anything about the presentation layer. Also, since the presentation layer has a reference to the BLL, it won't let me add a reference to the presentation layer from the BLL, it complains about a "circular...
13
2538
by: Michelle | last post by:
Hi all... I could use a little TLC here for understanding and not for solving a specific problem... sorry if I've got the wrong group, but I'm using VB so I figured this was the most appropriate one. I'm an advanced beginner, but in all of the books and class material I have, I haven't found something that gets to the point about this... lot's of high level theoretical talk, but nothing that says things in simple terms. I'm building...
5
1689
by: Learner | last post by:
Hi there, I am just trying to set up 3 tier architecture. When i add my Datalayer project to the Business layer project the methods are exposed to in my business class. But in the similar way when i add the Businesss layer project to my presentation i don't see the methods of BL exposing in my presentation layer. But i see the namspace and also the class of my business class but i don't see the methods! is there any thing i am missing...
2
1931
by: Ily | last post by:
Hi all I am using Visual studio 2005. Im my project I have a presentation layer, a business layer and a data access layer. From my business layer i have a reference to my data layer. I also have a refeence to my business layer from my presentation layer. Now the weird thing is, I can create a form, and I can add a using
6
14154
by: Dhananjay | last post by:
hello everyone i have got a problem i want to design business layer, data access layer , presentation layer for asp.net using C#.net , can anyone help me to solve this problem. i want some resources to complete this. i am trying very hard. Do you have any idea about website or any links where i can find some examples based on this concept.can you plz provide me , its urgent i want this solution with an example, if u have plz provide me. ...
1
1444
by: | last post by:
I'm querying Index Server to return search results, both regular properties and some custom properties I've created. Index Server has this preference for thinking about information as strings rather than datatypes.If you really work at it, you can configure Index Server to treat the data as, say, sortable DateTime datatypes, or integer datatypes. But I'm finding this a huge pain in the butt, and it bothers me that I'm attaching a bunch of...
1
1545
by: Clark Simpson | last post by:
Hi, Apologies if this is such a simple query but if I have an ASP/.NET Application which I normally access via www.foo.com/myapp on Machine A can I access this application layer machine via a Presentation Layer Machine B via www.mypresentationlayer.com/myapp? In a nutshell I want users to access Machine B on the front end (web) but behind the scenes the actual requests are routed to Machine A. Anyone?
0
1821
by: johnlim20088 | last post by:
Can someone help me on this? I need a sample console application built in C# net with new practice -> separate in three layer architecture 1) Presentation layer 2) Business logic layer 3) Data Access layer..
0
10232
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10059
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9873
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7420
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6682
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5313
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5454
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3578
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2822
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.