Solved

ASP.NET Authentication with Themes

Posted on 2007-03-24
4
655 Views
Last Modified: 2008-01-09
I am having trouble with ASP.NET Authentication in combonation with ASP.NET 2.0 Themes. It seems when I use

            <authorization>
                  <deny users="?" />
                  <allow users="*" />
            </authorization>

in my web.config file, all StyleSheets are disabled for all users unless they are logged in. This is obviously not the behavior I want.
0
Comment
Question by:derekthornton
  • 3
4 Comments
 
LVL 5

Accepted Solution

by:
asp_lha earned 500 total points
ID: 18787543
you can make a new subdir , put all of the StyleSheets to the new subdir

Or just add some code to web.config like the following :

  <location path="SiteStyle.css" >
    <system.web>
      <authorization>
        <allow users="*"  />
      </authorization>
    </system.web>
  </location>
0
 
LVL 2

Author Comment

by:derekthornton
ID: 18787548
I'm not sure I understand. I have more than just one stylesheet, how do I address that issue?
Also, they all are in a subdirectory in the Themes folder.

App_Themes->Default->Stylesheets is the folder.
0
 
LVL 2

Author Comment

by:derekthornton
ID: 18787559
Also, I cannot hardcode a path with ASP.NET 2.0 Themes. It is dynamic, generated based on the theme selected.
0
 
LVL 2

Author Comment

by:derekthornton
ID: 18787569
Solved it. I simply used App_Themes as the path! :o

Thanks for the help! That fixed the problem nicely.
0

Featured Post

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Lots of people ask this question on how to extend the “MembershipProvider” to make use of custom authentication like using existing database or make use of some other way of authentication. Many blogs show you how to extend the membership provider c…
User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question