Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 4 > BOOK: Beginning ASP.NET 4 : in C# and VB
|
BOOK: Beginning ASP.NET 4 : in C# and VB
This is the forum to discuss the Wrox book Beginning ASP.NET 4: in C# and VB by Imar Spaanjaars; ISBN: 9780470502211
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 4 : in C# and VB section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 2nd, 2010, 05:58 AM
Registered User
 
Join Date: Nov 2010
Posts: 8
Thanks: 3
Thanked 0 Times in 0 Posts
Default weird behaviour - chapter 6 User-selected theme

Hi,

I'm trying to get the "applying the user-selected theme" exercise in Chapter 6 to work and can't. The behaviour is that the theme-switching works for the login page but not for the default/home page. In the case of the home page the theme switches successfully from Monochrome to DarkGrey when the latter theme is selected in the drop down list, but when I then select Monochrome in the drop down again nothing happens. If I follow the link to the login page and select 'Monochrome' in the drop down it switches themes as expected (and if i follow the link back to the home page the correct theme is set there too).
I can see from setting a breakpoint in the ThemeList_SelectedIndexChanged() function in master.cs that that function isn't getting called when I select 'Monochrome' in the dropdown list from the home page and I can't see why that might be - any ideas?

thanks
Lorna
 
Old December 2nd, 2010, 06:36 AM
Registered User
 
Join Date: Nov 2010
Posts: 8
Thanks: 3
Thanked 0 Times in 0 Posts
Default sorted!

found my problem. At some point in an earlier exercise I had set the ViewStateMode to disabled for my default page; doh. I haven't worked out why this causes the behaviour I saw (ie why would disabling viewstate mean I could switch from monochrome to darkgrey, but not back again - why does the ThemeList_SelectedIndexChanged() function only get called the first time. ), but I'll mull that over...

Last edited by lornarmac; December 2nd, 2010 at 06:52 AM..





Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 6 pps 226-228 User Selected Theme Featheriver BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 3 April 20th, 2011 07:08 AM
Applying a user selected theme tariq BOOK: Beginning ASP.NET 4 : in C# and VB 4 July 4th, 2010 01:52 PM
Applying the User-Selected Theme Kerblamalot BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 1 January 29th, 2010 11:08 AM
(Chapter 6) applying user-selected theme in IE7 phoenixx ASP.NET 3.5 Basics 6 August 26th, 2008 09:49 AM
Chapter 6 User-Selected Theme Question jabo2099 BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 2 August 21st, 2008 03:45 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.