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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T01:12:28+00:00 2026-05-17T01:12:28+00:00

Summary I have a web-application with more than 5 themes. Each themes covers a

  • 0

Summary

I have a web-application with more than 5 themes. Each themes covers a completely different style for different customers. whenever we publish a new version of our application we send it for all of customers.

The problem.

We specify theme in web.config file in <Page> tag. like

<page theme="Theme1" /> // or Theme2 for second customer.

with this approach we easily change the style of application from each other without writing codes which needs a new publish for each one.

With changing the theme="Theme1". nothing change and we didn’t write a code in application , so why changing theme don’t change the theme and we need a new publish?

we want to change it in web.config or somewhere else and with changing it the theme change without needing a new publish for each one.


Update :

I Publish Once and then copy the published version for each customer (5 times) then in each web.config file I change the theme="CustomerTheme". but only the theme which was active in publish process is usable in all of 5 versions and other 4 themes are un-usable

—

Actually the main question is that why changes in Web.Config need a different publish while it is XML and do not need a complie. I should Add this note that, App_Theme include all of 5 themes so that all of them Compiles and are ready to use

—

This is the way I publish the application

Publish

Photo Link


Update 2

here IFound the exact problem reported by someone else. he resolve the problem but I can’t underestand how he resolved this Issue. can anybody tell me how he resolved the issue?

he used aspnet_compiler command and told that automatically ADDS the 'theme' on the Page directive

(first post is the question and the last post is the answer)

http://bytes.com/topic/asp-net/answers/495850-themes-web-config

  • 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-17T01:12:29+00:00Added an answer on May 17, 2026 at 1:12 am

    If I understood you correctly, you have one theme for each customer and that will not change?

    Still, I do not understand your publishing scenario? Why do you want to change the Theme if each customer has its own web application?

    Nevertheless, how about you check the request url in the codebehind and set the Theme Name programatically?

    Pseudo-code: (you need to have this piece of code executed on every request. You could write an HTTPHandler for this, or use the BeginRequest Event in the global.asax. You also need to find which property provides the necessary URL information)

    switch(Request.URL)
    {
     case "www.customer1.com":
        Theme = "Customer1";
        break;
     case "www.customer2.com":
        Theme = "Customer2":
        break;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to have a summary field in each page of the report and
I have an application, built using MVC, that produces a view which delivers summary
I have a bowling web application that allows pretty detailed frame-by-frame information entry. One
So I have an ASP.NET web site (not web application) I'm making in VS2010
I have an SSRS report where I need to collapse data into a summary
You may have noticed that we now show an edit summary on Community Wiki
Let's say that I have a widget that displays summary information about how many
Suppose I have this interface public interface IFoo { ///<summary> /// Foo method ///</summary>
Ok so part two of I have no will power experiment is: Summary Question
Summary What's the best way to ensure a table cell cannot be less than

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.