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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T20:15:55+00:00 2026-05-22T20:15:55+00:00

I have a webdev problem I have close to 10,000 serverside pages, all of

  • 0

I have a webdev problem

I have close to 10,000 serverside pages, all of thse use the same stylesheet. I have created a new serverside page which is like a dynamic menu system to help find specific pages from the existing 10,000 pages quickly and easily.

The problem is, that if the serverside pages are accessed the old way using the old menu system, they should retain their old stylesheet. however, if they are accessed via the new menu system, they should use a new refreshed stylesheet.

Editing 10,000’ish pages does not seem like a good option. What is the best way to go about tackling this problem?

  • 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-22T20:15:56+00:00Added an answer on May 22, 2026 at 8:15 pm

    Have the stylesheet in an app_themes folder and set this in the web.config. Then you can change between the two quickly. Or you could set this in code in the pre_init event

    EDIT:
    1: Add and app_themes folder, create two sub folders with theme names (eg, default or Blue etc)

    2: either in the web.config set the or

    3: catch the page_init for each page that you wish to change(or for master pages and lots of pages have a base page class and override page_init) and set the Page.Theme = to a theme you want. Best off saving this in Session State from what I can tell. So something like this:

     if (Session["Theme"] == null)
      {
        //the string is the theme as per the cleaners default
        string chosenTheme = selectedTheme();
        Session.Add("Theme", chosenTheme);
        Page.Theme = ((string)Session["Theme"]);
      }
      //if the page is reloaded.
      else
      {
        Page.Theme = ((string)Session["Theme"]);
      }
    

    Hope this helps sire

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

Sidebar

Related Questions

I have an odd problem. Our company collects data and we use a HORRIBLE
I have recently ran into a problem that would not allow me to use
I recently encountered an odd problem with RSACryptoServiceProvider.VerifyHash . I have a web application
I have a new web app that is packaged as a WAR as part
I have found this example on StackOverflow: var people = new List<Person> { new
I have a login.jsp page which contains a login form. Once logged in the
So I have a very weird problem. I am writing some code in VB.Net
I have a Contact Us page where in users will give in their email
I have an internal web page that I have an iframe with the source
I have a page, test.php, with the following code: <html> <body> <form> <script type=text/javascript>

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.