Last post Jan 07, 2011 12:30 PM by shabirhakim1
Jan 07, 2011 09:26 AM|perazhagan|LINK
Hi,i used gridview with SQL for my enquiry website.may i know,what is the architechture in this web site?
Whether it is single tier/two tier/three tier architechture.
Jan 07, 2011 12:30 PM|shabirhakim1|LINK
3-Tier architecture generally contains UI or Presentation Layer, Business Access Layer (BAL) or Business Logic Layer and Data Access Layer (DAL).
Presentation Layer :
Presentation layer cotains pages like .aspx or windows form where data is presented to the user or input is taken from the user.
Business Access Layer (BAL) or Business Logic Layer
BAL contains business logic, validations or calculations related with the data, if needed. I will call it Business Access Layer in my demo.
Data Access Layer (DAL):
DAL contains methods that helps business layer to connect the data and perform required action, might be returning data or manipulating data (insert, update, delete etc). For this demo application, I have taken a very simple example. I am assuming that I have
to play with record of persons (FirstName, LastName, Age) and I will refer only these data through out this article.
Actually it's one "tier" . Tiers are generally used to describe physical separations within the application, such as having one server for the databse, one for the business logic and one for the UI rendering. Logical separations are done in "layers". You
currently have a two-layered approach. If you separate your data access to a new area of code so that your code behind only knows the names of the methods, but doesn't know how they do their thing, you are introducing another layer.
Three tier :For more detail you can visit http://msdn.microsoft.com/en-us/library/aa581796.aspx
Four Tier :http://www.dotnetfunda.com/articles/article18.aspx