Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Visual Studio 2008 For discussing Visual Studio 2008. Please post code questions about a specific language (C#, VB, ASP.NET, etc) in the correct language forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual Studio 2008 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old February 3rd, 2011, 02:50 AM
Registered User
Points: 43, Level: 1
Points: 43, Level: 1 Points: 43, Level: 1 Points: 43, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Dec 2010
Posts: 9
Thanks: 1
Thanked 0 Times in 0 Posts
Default Layered architecture

Hello everyone. I'm learning asp.net right now, my professor asked me to do any application using layered architecure. She said application should have 3 layers 1.UI
2.Business Logic Layer and
3.Data Access Layer.... but honestly I dont have any idea about this .. kindly help me out please...
  #2 (permalink)  
Old February 3rd, 2011, 09:40 AM
Friend of Wrox
Points: 3,558, Level: 25
Points: 3,558, Level: 25 Points: 3,558, Level: 25 Points: 3,558, Level: 25
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: California, USA
Posts: 996
Thanks: 2
Thanked 11 Times in 11 Posts
Send a message via Yahoo to melvik
Default

well, usually in advance software design we use laying to apart software tasks where application works independently in layers. It's contains of min 2-N layers (Microsoft has 4)
but usually 3 as u mentioned.
1. UI = User Interface
2. BL = Business Layer or Logic
3. DA = Data Access

let me explain u in an instance:
u have a ASP.NET page where users register.
u have some rules like checking if user is able to register according to her/his birthday & ...
1.ur ASPX file is ur UI where ppl see.
2. u use some classes & functions to check the rules (age story) its a separate project or at least another file
3. u have a different project who is the only responsible for ur Data part.

its like this:
1- user see the page & enter some data & PUSH REGISTER BUTTON
2- ur page sends user entered data to BL & it checks some rule like age, & if it was ok, calls the DL methods to add data to DB, or if its not ok, doesnt send & may gives a report back to user in UI ...
3- ur DA is only doing CRUD operations such as making connection & executing some T-SQL commands.

Its a long story u should go for, not too simple to reply u here, but not as hard as u cant...
HTH
__________________
Always,
Hovik Melkomian.
  #3 (permalink)  
Old February 4th, 2011, 02:11 AM
Registered User
Points: 43, Level: 1
Points: 43, Level: 1 Points: 43, Level: 1 Points: 43, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Dec 2010
Posts: 9
Thanks: 1
Thanked 0 Times in 0 Posts
Default thank you

well thank you very much for your response, but actually I'm a beginner to ASP.net so whatever you've explained I didn't get any of it...... will you please elaborate....
  #4 (permalink)  
Old February 4th, 2011, 02:55 AM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

You may want to take a look at this: http://imar.spaanjaars.com/476/n-lay...l-introduction

It's quite a long read and requires some background in ASP.NET and C#, but it may help you grasp the concepts of N-Layer design.

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!


Similar Threads
Thread Thread Starter Forum Replies Last Post
Developing Layered Applications ksouthworth BOOK: Professional ASP.NET Design Patterns 5 January 6th, 2011 05:24 PM
Layered/Tiered-Architecture complexity (AGAIN)... edurazee Visual Studio 2005 3 May 13th, 2009 02:51 PM
Layered/Tiered Architecture complexity... edurazee Visual Studio 2005 6 May 3rd, 2009 11:04 AM
Multi Layered Design jumbojs BOOK: Beginning C# 2005 Databases 1 October 19th, 2008 11:29 AM
Layered Applications Muhammad Zeeshan General .NET 5 July 25th, 2007 04:08 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.