What is N-tier Architecture?
In software engineering, n-tier architecture is a client–server architecture
in which presentation, application processing, and data management
functions are logically separated. For example, an application that uses
middleware to service data requests between a user and a database employs multi-tier architecture. The most widespread use of multi-tier architecture is the three-tier architecture.
following are steps to create n-tire architecture in asp.net:-
1. Select Project type of Blank Solution
* Open visual studio 2010
* Select following path
* file -> new -> project
* Select other project type and select visual studio solution , in the right panel select blank solution
* Provide name to solution
* Select location
Now we have to create data layer(class library) to improve the modularity.
2. Create/Add
Layers in Solution
2.1 add data layer to solution
* Open solution explorer and right click on solution.
* Select Add -> New Project
* Select visual c# -> windows
* In right panel select class library
* Provide name to this layer
2.2 add web site to solution
* Open solution explorer and right click on solution.
* Select Add -> New Web Site
* Select ASP.NET Empty Web Site
* Browse to your application location
* Provide name to this layer
2.3 Add first page in your web site
* Right click on Web site in solution Explorer
* Select Add New Item
* Select Web Form (.aspx)
* provide name to this first page like index.aspx / default name is Default.aspx
-Thank you