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 8933455
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T09:32:26+00:00 2026-06-15T09:32:26+00:00

I manage a very large web/database application (currently about 80 ASPX pages). This is

  • 0

I manage a very large web/database application (currently about 80 ASPX pages). This is shared across our clients (e.g. they all access the same application at the same URL).

I also upload individual ASPX pages to the live server, rather than a compiled version, to allow me to work on different portions of the site at different times.

I now have a challenge where a new client wants to host the application themselves on their own server. This will involve modifying about 3 pages before uploading.

I’ve never faced this challenge before, but is there a away to avoid duplicating the whole application just for those minor changes? In future I will need to manage the original application, plus the client’s own hosted version, but don’t necessarily want to upload each new version twice, and also managed different versions of the modified 3 pages.

  • 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-06-15T09:32:27+00:00Added an answer on June 15, 2026 at 9:32 am

    I’ve done this sort of thing before and I think that for only 3 pages a whole new “fork” is overkill. Not that I’m saying, “Don’t use source control”. ( You BETTER be using some kind of source control ) But for three pages, I think the easiest solution is some simple redirect logic.

    I assume that when these specific users are logged into your system that you have some sort of ‘global variable’ that indicates that they are a member of the company in question. In the 3 pages that you are trying to replace, just put something like if (companyName == "specialCompany") Server.Transfer("specialCompanyDirectory/anotherPage.aspx"); or something. I’d recommend putting all three replaced pages into a separate directory, just for sanity sake. Then at the top of each page in the “specialCompanyDirectory” be sure to check that the current user is indeed a member of “specialCompany”.

    Depending on the logic of your application and pages, you might need to do something other than a redirect; like using a separate Web User Control.

    Either way, creating a whole separate application for a 3-page-change seems like the wrong method. If you’re going to be changing a whole bunch of pages, look into the TFS branches, SVN forks or another piece of software.

    EDIT:

    Generally, branches are designed to remain independent until you eventually merge them. If you were to keep them eternally disparate, while the individual branches are being developed, they have nothing to do with one another; so if you were to make a small change to one of these 3 pages in the ‘main’ branch, you would then have to go and make the change again in the ‘specialCompany’ branch as well.

    I suggest that you use the method I originally described above, since you have so few edits. I suggest that you use some sort of global method to decide when to use a special method just so that you can keep track of where you are making these special changes. For example, add a method somewhere in your App_Code that looks something like this:

    public String companySpecialMethod()
        {
            if (Request.ServerVariables["HTTP_HOST"].ToString().ToLower().Contains("somespecialdomain.com"))
            {
                return "somespecialdomain";
            }
            else if (Request.ServerVariables["HTTP_HOST"].ToString().ToLower().Contains("anotherspecialdomain.com"))
            {
                return "anotherspecialdomain";
            }
            else
                return "";
        }
    

    Then in your code you can just do something like :

    if (companySpecialMethod() == "")
    {
        //run a normal method
        normalMethod();
    }
    else if (companySpecialMethod() == "somespecialdomain")
    {
        //run a special method, just for somespecialdomain
        somespecialdomainMethod();
    }
    else if (companySpecialMethod() == "anotherspecialdomain")
    {
        //run a special method, just for anotherspecialdomain
        anotherspecialdomainMethod();
    }
    

    HOWEVER

    If you really want to use Source Control for this solution ( which may be the best idea if you are thinking that you are going to be doing lots of this type of thing ) then you could try this:

    enter image description here

    Assuming that you want all your code in a repository: You basically create one repository (Main Repository) that contains ONLY the code that is exactly the same across all projects. This way all your base code will remain up to date; any changes that you make in your normal project will propagate to your special projects as well.

    ( You don’t have to do this next part, but it’s Best Practice to have all your code in some sort of Source Control )
    Then you create a new repository for each of your ‘special’ directories.

    This method will ensure that you will have all your code in Source Control and that you won’t have to duplicate changes to your ‘Base’ Code.

    As far as Source Control software, I prefer SVN, but that’s just me. 🙂 TFS is a good product as well, and works similarly to SVN.

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

Sidebar

Related Questions

At work we currently have a very large web application with a connection to
Our application has a very large, wide table of transactional data. We have a
I manage a rather large application (50k+ lines of code) by myself, and it
Here at work we have a very large application with multiple sub applications. (500
I have a PHP based web application which is currently only using one webserver
I'm creating and processing a very large data set, with about 34 million data
Subject: Migrating very complex, legacy client-server application to SAS enabled web-version using NOSQL We
Recently I was working on displaying workflow diagram images in our web application. I
I am currently working on a project where I have to manage large sets
Our project has about 20 developers, but our application makes relatively light use of

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.