Click here to Skip to main content
15,905,148 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
is there any predefined code to make easy three tier architecture in asp.net using c#.net

[edit]SHOUTING removed - OriginalGriff[/edit]
Posted
Updated 1-Jul-11 4:10am
v2
Comments
OriginalGriff 1-Jul-11 10:10am    
DON'T SHOUT. Using all capitals is considered shouting on the internet, and rude (using all lower case is considered childish). Use proper capitalisation if you want to be taken seriously.

Create a class library - BusinessLogic
Create a class library - DataAccess

Now, from your UI, use the object model and pass on to BusinessLogic project class. This class is a Business logic class. Do the changes as per your need here.
Now, pass on the changed data from business logic class to dataAccess project class. In this class, use ADO.NET and pass on the needed values to Stored Procedure.

For getting back data, it will be transferred from DA to BL and then BL to UI layer.
Have a look at these, explaination with samples:
3-tier architecture in C#[^]
3-Tier Architecture Examples[^]
3-Tier Architecture in ASP.NET with C#[^]
 
Share this answer
 
Comments
Uday P.Singh 2-Jul-11 3:02am    
good answer with nice links my 5:)
Sergey Alexandrovich Kryukov 2-Jul-11 18:24pm    
Agree, my 5.
--SA
n-tier architecture is a pattern of development - not a definitive code set. Google is your friend.
 
Share this answer
 
There are several frameworks available that implement this architecture, but mostly it is up you, the architect/developer, to design and implement.

Though it isn't specifically n-tier, ASP.NET MVC[^]
will help get your there.


"easy" is a relative term. How do you define easy?
 
Share this answer
 
Comments
#realJSOP 1-Jul-11 10:52am    
How do I define "easy"? My ex-wif'es name comes immediately to mind. :)
[no name] 1-Jul-11 11:11am    
Same here. I hope we weren't married to the same women. :)
You can use doodads three tier architecture for asp.net. Its a easy package. Its gives you ready made Store procedure and Class file. if u become familiar with the package u can increase your programming speed also.

Working with Doodads Mygeneration Architecture For ASP.NET[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900