Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

ASP.NET Authentication with Themes

Posted on 2007-03-24
4
Medium Priority
?
669 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 5

Accepted Solution

by:
asp_lha earned 2000 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Sometimes in DotNetNuke module development you want to swap controls within the same module definition.  In doing this DNN (somewhat annoyingly) swaps the Skin and Container definitions to the default admin selections.  To get around this you need t…
Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…

671 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