View Single Post
  #16 (permalink)  
Old April 8th, 2012, 06:09 AM
Imar's Avatar
Imar Imar is offline
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

That looks alright to me, so the problem must be elsewhere. To avoid going back and forth a lot of times posting bits and pieces of relevant code, I created a small sample site and attached it to this post. It uses the Planet Wrox themes, two nested Master Pages and uses only cookies to switch both the theme and the master page (that is, I removed all Session related code).

Hope this example helps in figuring out why it doesn't work for you.

Cheers,

Imar
Attached Files
File Type: zip SwitchingThemesAndMasterPages.zip (79.6 KB, 2 views)
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
Reply With Quote