title: Enabling support for multiple user logins with different themes?
body: <p>I have two roles set up in my web application one 'admin' and one 'operations', and two themes blue and red.</p>
  
  <p>What I want to be able to do is build an introductory multi tenancy application which allows for 2 different user logons accessing differentiating themes?.</p>
  
  <p>Now, I can switch themes dynamically using a drop down menu, but am struggling to piece together the code that would allow this when dealing with 2 different user accounts?.</p>
  
  <p>Im working in public void Page_PreInit() event.</p>
  
  <p>Any advise would be great, cheers.</p>
  
  <pre><code>    using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Web;
  using System.Web.Security;
  using System.Web.UI;
  using System.Web.UI.WebControls;
  
  public partial class _Default : Page
  {
      public void Page_PreInit()
      {
          if (Roles.IsUserInRole("admin"))
          {
              Page.Theme = red;
          }
          else if (Roles.IsUserInRole("operations"))
          {
              Page.Theme = blue;
  
          }
      }
  
  
      public string red { get; set; }
  
      public string blue { get; set; }
  }
  </code></pre>