This post originated from an RSS feed registered with .NET Buzz
by Eric Wise.
Original Post: App Themes and Forms Authentication
Feed Title: Eric Wise
Feed URL: /error.htm?aspxerrorpath=/blogs/eric.wise/rss.aspx
Feed Description: Business & .NET
So I have wired up the I am Brilliant application to use app_themes.
I would like to say that I'm pretty impressed with the App_Themes concept and I plan on leveraging it soon. To set a theme at runtime you simply set page.theme="blah" in your pre_init method.
What was driving me crazy was that the login page of my application was not getting the theme so it was showing up all crappy since the css and images were not appearing. This bothered me greatly for a day or so and then it hit me:
If you want to use themes on a "public page" in a forms authenticated application you have to make sure the App_Themes folder is public.
"Duh" I thought when I figured this out. But being that themes are new it didn't immediately occur to me. Quick modification to the web.config fixed me right up: