473,320 Members | 2,112 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Master Pages and Themes not working

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
Nov 20 '05 #1
2 1833
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>

-Brock
DevelopMentor
http://staff.develop.com/ballen
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

Nov 20 '05 #2
Thanks that did it.
After rereading my post it seems so obvious that I should have checked that
based on the symptoms.

"Brock Allen" wrote:
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>

-Brock
DevelopMentor
http://staff.develop.com/ballen
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


Nov 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

14
by: multiformity | last post by:
So I have been working on an opensource project for a while, and decided to really try to make it look better after focusing on the functionality most of this time. Up to now, I have simply used a...
7
by: sasquatch | last post by:
Hi, I've a a site with nested master pages and content pages. I tried using a theme with a stylesheet in the app_themes directory referencing it in the web.config file from a pages tag theme...
1
by: Ryan Ternier | last post by:
I have just started playing around with ASP.NET 2.0 and have a few questions I couldn't get answers to on the net. If anyone could help me with these it'd be awesome. --- Themes - THey seem to...
1
by: Seefor | last post by:
I may be missing something, but why aren't master pages part of themes? i.e. why don't they go in the App_Themes or global Themes directory, and be referenced just by name (not full path) in the...
3
by: johannblake | last post by:
I'm reading up on Themes and Master Pages in ASP.NET 2.0 but I cannot seem to understand what the difference between the two are. Do Master Pages essentially end up doing what Themes do? Is...
1
by: sbelgrave | last post by:
First off. Hats off to MS to really doing a good job of major fixes on VS 2K5. It is really a lot better. I have begun using Master Pages with Themes but am a bit confused as to how to make the...
6
by: Just Me | last post by:
When using master pages, how can I get an external style sheet applied to the specific page and still see the effects at design time. I want to have a generic style sheet and specific ones for each...
4
by: Stacey Levine | last post by:
I am trying to develop an intranet site and thought I would use Master Pages and themes. I found the the MS templates at http://msdn2.microsoft.com/en-us/asp.net/aa336613.aspx and was trying to...
6
by: Homer J. Simpson | last post by:
Hi all, I have enough experience with HTML/classic ASP to get by, and I'm trying to learn ASP.NET. Traditionally, I've taken the habit of breaking out extra-long CSS files into multiple,...
8
by: Jonathan Wood | last post by:
I want to dynamically set my site's theme based on a setting stored in my database. I just hooked this up but get an error that the theme can only be set in the page's PreInit event or earlier....
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.