Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4030164
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T11:26:13+00:00 2026-05-20T11:26:13+00:00

I am currently working on a asp.net site which has a 2 tiered architecture.

  • 0

I am currently working on a asp.net site which has a 2 tiered architecture. UI and DAL. This is a site which has alot of logic in triggers and obvioulsy most of the logic in the UI. I would like to add a 3rd layer which is a business layer ,so as to be able to allow for re use of code, be able to do unit tests etc.

Has anyone ever done this , moved from a 2 tiered to 3 tiered archecture and if you have then how did you approach it. Did you just start writing any new code with 3 tiered and leave the rest etc? i would also consider MVC etc but i think that this maybe too much work.

thanks
niall

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T11:26:14+00:00Added an answer on May 20, 2026 at 11:26 am

    There are two approaches:

    1. Rewrite from scratch
    2. Abstract the ugliness behind interfaces and abstract classes and use factories or DI.

    For example when Microsoft designed the ASP.NET MVC framework they chose the second approach: they introduced abstractions like HttpContextBase, HttpRequestBase, ….

    So if you don’t have time to rewrite everything from scratch you could start by thinking how your service layer might look and start designing POCOs and interfaces which would define the operations with those POCOs. Then the UI layer would only know about the service layer. In the implementation of this service layer you could use repositories which represent the CRUD operations with your entities and in the implementation of those repositories you would have the data access code you are currently having.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm currently working on an ASP.NET site created by someone else. There is this
I am working with an asp.net 2.0 site (call it site 1) which has
I'm currently working on an ASP.NET web-site. In one of my pages, I had
In one of the ASP .Net site we are currently working we have a
The ASP.net page I am currently working on has a drop down list that
I am working on an ASP.NET 2.0 web solution which currently runs en-GB and
I am currently converting a very old, but working classic ASP site to ASP.Net.
I'm working on a site in asp.net (my first) which is all going very
I currently have an ASP .NET MVC site that has two domains pointing to
I'm currently working on an asp.net site, done by someone else, and it's rediculously

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.