N-tier Architecture in Asp.net

Âobject, or a custom collection object. The Data layer
Architecture is an important feature and the verygets the data from the business layer and sends it to
first step in the development of an application. n-Tierthe database or vice versa. This layer is further
the term is used for multiple tier or multiple layers.divided into two sub layers Business Logic Layer
n-Tier Architecture splits the solution process into(BLL) and Data Access Layer (DAL). DAL is
different projects based on the businessresponsible for accessing data and forwarding it to
requirements. The main advantage of using n-Tier isBLL. In ASP.NET it uses SqlClient or OleDb to retrieve
that the complexity associated with the business andthe data and send it to BLL in the form of a DataSet
the process is reduced and it is easy to work with.or DataReader. BLL (Business Logic Layer) is
The elements of performance, scalability and futureresponsible for preparing or processing the data
development issues need to be considered whenretrieved and sends it to the presentation layer.
deciding on the architecture of the applicationThe Data layer gets the data from the business layer
depending on the priorities required.and sends it to the database or gets the data from
The n-Tier application has three tiers or layers, theythe database and sends it to the business layer. In
are called the presentation tier, the business tier andASP .NET it is an SQL Server or Access database. It
the data tier. Each layer interacts with the layercan also be Oracle, mySQL or even XML.
directly below, and has specific function to perform.In an ASP.NET n-tiered architecture web pages do
Presentation Layer is responsible for displaying usernot make direct calls to the database. A given layer
interface to either programmer or end user.only communicates with its neighboring layers.
Programmer uses this layer for designing purpose andASP.NET Web pages should reference custom
to get the data back and forth. In ASP.NET itobjects defined in the business object layer. These
includes ASPX pages, user controls, server controlsobjects provide database information in a class
and sometimes security related classes and objects.structure.
The Business layer works as a mediator to transferThe partitioning of ASP.NET applications into
the data from presentation layer. In the three tierfront-end, middle tier and back-end layers, the n-Tier
architecture the data access layer is not made toarchitecture supports a more uniform, building block
interact with the presentation layer. The architectureapproach to application designs. Hardware and
in ASP.NET includes using SqlClient or OleDb objectssoftware for presentation, application and database
to retrieve, update and delete data from SQL Serverfunctions can be scaled separately, and included more
or Access databases and passing the data retrievedeasily into complex e-Business environments.
to the presentation layer in a DataReader or DataSet