Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / September 2006

Tip: Looking for answers? Try searching our database.

newbie: security & themes!

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jeff - 19 Sep 2006 08:00 GMT
Hey

asp.net 2.0

I have a webpage which get it's layout data from a theme. Using the theme
works without problem until I added these settings to the web.config file:
<authorization>
<deny users="?"/>
</authorization>

With this new settings in web.config the theme isn't applied to the page!

I've only tested this for unauthenticated users

Top-most script in Default.aspx file:
<%@ Page Language="C#" MasterPageFile="~/MainMaster.master"
AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default"
Title="Untitled Page" Theme="Standard" %>

What should I do make the theme work with the newly applied web.config
settings?

Jeff
Mohamed Mosalem - 19 Sep 2006 08:34 GMT
Hi,
This is a strange problem, does your theme use Css or reference other images,
if so you need to allow access to these Css and image files for everyone,
for example i have two folder Css and Images where i store my css and other
images used in the site graphics i have to add these lines to the web.config
to allow access to these folders
<location path="images">
        <system.web>
            <authorization>
                <allow users="*"/>
            </authorization>
        </system.web>
    </location>
    <location path="Css">
        <system.web>
            <authorization>
                <allow users="*"/>
            </authorization>
        </system.web>
    </location>

May be this will resolve your problem.

Regards,
Mohamed Mosalem

> Hey
>
[quoted text clipped - 19 lines]
>
> Jeff
Jeff - 19 Sep 2006 10:07 GMT
Hello Mohamed, thank you for replying to this post!

Yes, this theme is using css, but the .css file is in the theme folder:
App_Themes\Standard\Default.css

This css file is referencing a image file which is placed in the same folder
as the Default.css file

Should I use this script then:
</location>
   <location path="App_Themes\Standard\">
<system.web>

Any suggestions?  maybe I instead should use a .skin file?

Jeff

> Hi,
> This is a strange problem, does your theme use Css or reference other
[quoted text clipped - 49 lines]
>>
>> Jeff
Mohamed Mosalem - 19 Sep 2006 10:22 GMT
Hi Jeff,
Of course you need the skin file, this file determines the styles and
properties that will be applied to the server controls

> Hello Mohamed, thank you for replying to this post!
>
[quoted text clipped - 66 lines]
> >>
> >> Jeff

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.