CSS Configuration for multiple clients thru ASP.NET

Ananda

Newcomer
Joined
May 4, 2004
Messages
13
Hello

We are having a web application product (done in ASP.NET) that runs in IIS web server. We have configured for all our clients in the same server. So nearly 7 to 8 web application of the same product is running in the web server. In the web server we are having multiple physical folders that map to multiple virtual folders. This makes our work difficult at the time of updating the source files as we have to update in all the physical folders.
To overcome this problem we are planning to keep only one physical folder that map to multiple virtual folders. The following is the issue to be addressed in this case

• Since it is a product, different style sheet (CSS files) is required for each web application. How this is going to be achieved thru code. I mean based on the URL the CSS to be selected and applied to all web pages.

Can any one tell us how we can implement this feature in ASP.NET technology?

Thanks & Regards
Arunagiri
 
do the CSS files have the same name for all of the asp.net apps?

If so, change the name of the CSS and make it unique for each asp.net...

You can also have put them in a separate folder for each asp.net and just change the url in each app..
 
CSS Configuration for Multiple Clients via ASP.NET

This site provides information on alternating stylesheets on a single page, but could be extended for a site. In reality, it's not a server-side issue, rather client side.

http://www.alistapart.com/articles/alternate/

I would look toward having a ConfigurationData entry or something placed in a higher level web.config designating a "default" css and then each site-level entry override or extend the css via pre-render or within the aspx file iteself, as necessary.



Ananda said:
Hello

We are having a web application product (done in ASP.NET) that runs in IIS web server. We have configured for all our clients in the same server. So nearly 7 to 8 web application of the same product is running in the web server. In the web server we are having multiple physical folders that map to multiple virtual folders. This makes our work difficult at the time of updating the source files as we have to update in all the physical folders.
To overcome this problem we are planning to keep only one physical folder that map to multiple virtual folders. The following is the issue to be addressed in this case

• Since it is a product, different style sheet (CSS files) is required for each web application. How this is going to be achieved thru code. I mean based on the URL the CSS to be selected and applied to all web pages.

Can any one tell us how we can implement this feature in ASP.NET technology?

Thanks & Regards
Arunagiri
 
Back
Top