Master Pages and Themes not working

G

Guest

I am using ASP .NET 2.0, VS2005 Professional RTM.

I added a master page to my web application and made my default page refer
to it. I then proceeded to theme some elements in the master page.
Everything worked great. When I then went to my login page and had it refer
to the master page as well things started going wrong.
I attempt to run my application and get directed to the login page. The
login page is missing all the "themeing" from the master page portion. For
example, one of the skins contains the path to the logo image. The link
shows up broken. However, if I look at the source of the web page the path
is in there and it is correct.
If I proceed to login in I get to my default page and everything is fine.
If I click the back button the login page shows up as it should.
I have the theming set up from the web.config file.

Any ideas?

Chris
 
B

Brock Allen

Yep, you need to allow anonymous access to the App_Themes directory via a
<location> element:

<location path="App_Themes">
<system.web>
<authorization>
<allow users="*" />
</authorization>
</system.web>
</location>
 
G

Guest

Thanks that did it.
After rereading my post it seems so obvious that I should have checked that
based on the symptoms.
 
Joined
Sep 4, 2007
Messages
2
Reaction score
0
iis app_theme doesnt work

i did the same but it didnt work for me Can some one help plz.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,767
Messages
2,569,572
Members
45,046
Latest member
Gavizuho

Latest Threads

Top