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

  • Home
  • SEARCH
  • 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 315697
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T08:18:56+00:00 2026-05-12T08:18:56+00:00

I have a reasonably large project at work that I’ve inherited. It’s an ASP.NET

  • 0

I have a reasonably large project at work that I’ve inherited. It’s an ASP.NET 2005 website project and two C# library projects for data access and some business logic. The code actually runs 6 different database driven websites. It displays different images and text for each site based on logic that examines the URL and uses a series of Web.config values and switch statements.

We now have several new websites that will follow the same pattern and framework as these 6 and so management has decided that we should not reinvent the wheel and we should continue to extend the existing code. While I understand the decision from their perspective, the thought of extending this code with even more Web.config values and even more switch statements throughout feels wrong. It seems like there should be a better way to manage this particular form of complexity, but I don’t have a handle on what that better way should be.

At the same time, I’ve been looking for a project to start learning ASP.NET MVC and I’ve been leaning towards re-developing this project with it on my own time since it’s complex, but the requirements are in the code. I’m looking to gain 3 things out of moving it to MVC: 1) be able to test the app and all it’s versions and all it’s dark corners that I don’t even know exist yet, 2) hopefully find a way to make managing about 12 sites on a single code base manageable and 3) learn MVC.

After rambling a bit, here are some specific questions:

Will MVC actually offer me better ways to manage the 12 site in 1 code base issue? It’s a bit hard for me to tell without having a deeper knowledge of MVC.

Is there a templating pattern or framework that I can apply (in either WebForms or MVC) that is suited for sites like these that have similar content and structure and run from the same code base?

Is there a better way than examining the URL to decide which site is being viewed and what the images and text should be displayed for each site?

Thanks for the time. I do appreciate it!

  • 1 1 Answer
  • 3 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-12T08:18:56+00:00Added an answer on May 12, 2026 at 8:18 am

    ASP.Net MVC might have some real advantages for you here. You wouldn’t be manually examining URL’s any more, because the Routing functionality of MVC would do it for you – so in a way, it is a “better way”. Here are some advantages:

    1. URL routing is an easy way to differentiate which site was being served, and your “which site am I” parameters would be automatically handed down to every Controller (and subsequently, every View) if you structured your routes correctly.

    2. URL Routing works both ways, so it would be relatively straightforward for you to define a single View for all your sites that generated proper images and script references to whichever site directory you needed.

    3. Partial Views would be a great way to switch in site-specific content in corner cases where the template wasn’t exactly the same for each site.

    As long as the logic was reasonably similar for each site, ASP.Net MVC 1.0 could handle this. If you need different controller logic for each site, the upcoming release of ASP.Net MVC has the concept of “areas”, which would allow you to implement different sites in the same application that all had their own Controller, Model and View directories – but were differentiated by their routes.

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

Sidebar

Related Questions

Environment: Team Foundation Server 2005 Visual Studio 2008 I have a reasonably large project
I have a reasonably large (thousands of files) project which is divided between client
Hey Folks. I have a reasonably large commercial project (so for-pay licensing is always
I'm in the process of writing a website that includes a reasonably large gallery.
I have been starting to write some reasonably large and or confusing MySQL queries
I have a large legacy C++ project compiled under Visual Studio 2008. I know
I have a windows form that has two DataGridViews (DGVs) that will hold 25,000+
I have a project that adds elements to an AutoCad drawing. I noticed that
I have a large directory structure with JavaScript, images, etc. that depend on each
I have a reasonably large C++ program (~11mb exe) compiled under VS2008 and was

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.