<p>I have a site, and it will be sold to different clients but for maintenance reasons, we will be keeping one codebase. So this means that this one codebase will have to be dynamic enough to have different styles and so forth, depending on the client.</p>

<p>The domain would be a subdomain-type system, so: projectname.clientname.com , projectname.clientname.com, and so forth, where client name is the company who we have sold the system to.</p>

<p>What I'm trying to do is to have a different theme load up depending on the domain. So I may have ecards.savills.com, and for that, I have a folder in Themes called Savills, and inside that folder called Savills, a .CSS file and I want to load that. I've been playing with the request object, but no luck.</p>

<p>I've tried several methods to achieve this, using stylesheettheme (don't need to skin buttons btw), but I keep getting stack overflows in a system dll for .NET.</p>

<p>What is a robust way to achieve this?</p>

```
```
/* Do you have a folder in "Themes" or "APP_Themes" called Savillis? */
```
```
When you designate a Theme for a page, all stylesheets in that theme folder will be loaded. They will be loaded alphabetically, so watch the order.
On a page level, you can set the theme in the Page directive (aspx) or the PreInit (codebehind), or you can set a default theme in the web.config. (You can also set a global theme, but thats not usually used.
```
```
/* Are you doing that? */
```
```
Are there separate web site instances?