The Artima Developer Community
Sponsored Link

.NET Buzz Forum
App Themes and Forms Authentication

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Eric Wise

Posts: 126
Nickname: ewise
Registered: Apr, 2005

Eric Wise is a senior .NET consultant.
App Themes and Forms Authentication Posted: Nov 17, 2005 9:26 AM
Reply to this message Reply

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
Latest .NET Buzz Posts
Latest .NET Buzz Posts by Eric Wise
Latest Posts From Eric Wise

Advertisement

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:

 

<location path="App_Themes">

<system.web>

<authorization>

<allow users="*"/>

</authorization>

</system.web>

</location>

<location path="images">

<system.web>

<authorization>

<allow users="*"/>

</authorization>

</system.web>

</location>

Read: App Themes and Forms Authentication

Topic: New Adverts on the Blog Previous Topic   Next Topic Topic: Eric Sink: Code Economist

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use