Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 4 > BOOK: Beginning ASP.NET 4 : in C# and VB
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old December 2nd, 2010, 05:58 AM
Registered User
 
Join Date: Nov 2010
Location: near Manchester
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
Reply With Quote
  #2 (permalink)  
Old December 2nd, 2010, 06:36 AM
Registered User
 
Join Date: Nov 2010
Location: near Manchester
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..
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 07:05 PM.


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