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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T11:16:50+00:00 2026-05-23T11:16:50+00:00

I have been tasked with refactoring a current website (foo.com) using .NET and C#

  • 0

I have been tasked with refactoring a current website (foo.com) using .NET and C# that caters to multiple companies (abc.com, def.com, ghi.com, etc). The current website uses html templates for each of the companies so that foo.com emulates the company’s website.

Here is a sample of one of the templates:

<head>
<meta content="text/html; charset=windows-1252" http-equiv="Content-Type" />
<title>Current Dynamic Title</title>
<style type="text/css">
.theader {
    border-style: solid solid none solid;
    border-width: 1px;
    border-color: #000000;
    width: 980px;
}
.tbody {
    border-style: none solid solid solid;
    border-width: 1px;
    border-color: #000000;
    text-align: left;
    background-color: #FFFFFF;
    width: 980px;
    min-height: 250px;
}
.tfooter {
    width: 980px;
}
.style1 {
    border-width: 0;
}
</style>
</head>

<body style="margin-left: 0; margin-right: 0; margin-bottom: 0; background-color: #0099FF">
    <center>
        <div class="theader">
            <map id="FPMap0" name="FPMap0">
            <area coords="225, 163, 283, 183" href="http://www.abc.com/index.php" shape="rect" />
            <area coords="294, 164, 377, 181" href="http://www.abc.com/aboutus.php" shape="rect" />
            <area coords="388, 162, 472, 183" href="http://www.foo.com/current.ap" shape="rect" />
            <area coords="484, 164, 589, 183" href="http://www.abc.com/contactus.php" shape="rect" />
            <area coords="603, 161, 731, 183" href="http://www.foo.com/emaillist.ap" shape="rect" />
            </map>
            <img src="../images/Header_opt_1.jpg" height="191" width="980" class="style1" usemap="#FPMap0" />
        </div>

        <div class="tbody">
        inserthtmlhere
        </div>

        <div class="tfooter">
            <map id="FPMap1" name="FPMap1">
            <area coords="89, 8, 132, 24" href="http://www.abc.com/index.php" shape="rect" />
            <area coords="144, 8, 215, 25" href="http://www.abc.com/aboutus.php" shape="rect" />
            <area coords="224, 10, 299, 23" href="http://www.foo.com/current.ap" shape="rect" />
            <area coords="311, 7, 402, 24" href="http://www.abc.com/contactus.php" shape="rect" />
            <area coords="414, 8, 557, 24" href="http://www.foo.com/emaillist.ap" shape="rect" />
            </map>
            <img src="../images/Footer.JPG" class="style1" usemap="#FPMap1" />
        </div>
    </center>

</body>

As you can see, the templates include a custom head section, some custom css, and three divs for the content (theader, tbody, and tfooter). The current website picks up this template and replaces the “inserthtmlhere” with dynamic content based on querystring parameters and the page being called.

There are hundreds of these templates already in use with the current website.

My question is…. How would you go about refactoring this design?

  • 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-23T11:16:50+00:00Added an answer on May 23, 2026 at 11:16 am

    There are several things you can do to improve your templates.

    First, you can address the layout. Make sure that the markup contains only semantic HTML, and use CSS to control the layout. Tags such as <center> should be replaced so your templates are as flexible as possible. Make sure your markup validates.

    Second, factor the common elements of the code into generally-available files. Since you have hundreds of templates, you don’t want to edit every one for minor design changes.

    Third, move all CSS out of the template and into a separate file. You may find that you can use the same markup for every site, and just replace the CSS on a site-by-site bases. Please see CSS Zen Garden for inspiration.

    Fourth, consider replacing the image maps with more accessible content. Your vision- and motor-impaired users will thank you, and you may improve SEO in the process. (Automated search engine spiders can’t really extract useful information from your image.)

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

Sidebar

Related Questions

I've been tasked with porting/refactoring a Web Application Platform that we have from ASP.NET
I have been tasked with refactoring some components that used xmlbeans to now make
I have been tasked with improving the current mess that is our JavaScript strategy;
I have been tasked with rewriting a .NET application which communicates using a WSE
I have been tasked to look after an ASP.Net WebForms application that communicates with
I have been tasked with going through a number of ColdFusion sites that have
I have been tasked with developing a solution that tracks changes to a database.
I have been tasked with creating a program that will generate an amortization schedule.
I have been tasked with giving my company's website (~40 pages) a facelift. The
I have been tasked with writing an ADP application using Access. The back-end data

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.