Wrox Programmer Forums
|
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 May 22nd, 2014, 12:57 PM
Registered User
 
Join Date: May 2014
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter 6-pg 231: Theme Switching

I am having trouble switching between the themes. At first, I was having trouble with no themes being applied after I completed page 231 and removed the styleSheetTheme in the web.config file.
I then set some breakpoints and found that my ThemeList_SelectedIndexChanged in the masterpage code behind file was not firing. From there, I found that VS2010 did not set the event handler in the properties window automatically when I double clicked on the dropdownlist earlier in chapter 6.
After setting the selectedindexchanged event handler, my website will now display the DarkGrey theme properly, but when I switch to the Monochrome it becomes just a "plain jane" website.

Is the Monochrome theme supposed to be plain at this point in the book?
 
Old May 23rd, 2014, 11:28 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

Did you also carry out the exercise that applies the theme in the Page_Load method of the BasePage?

If so, something must be wrong with your code. Can you post the code for your master page, basepage and web.config so I can see all the relevant parts of the theme switcher?

Imar
__________________
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!
 
Old May 23rd, 2014, 02:15 PM
Registered User
 
Join Date: May 2014
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

This morning, I was comparing the monochrome.css file in my website to the two in the source and resource files. I found that mine was lacking quite a bit so I copied the one out of the resource file a second time. Apparently, it did not copy everything the first time around. Everything is working great now!

Thank you for your time and the great book you have written.

-Kurt
 
Old May 23rd, 2014, 02:39 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi Kurt,

At some point, the book instructs you to copy the entire Monochrome file from the book's Resources folder into your web site, overwriting your own file. Maybe you missed that step?

Cheers,

Imar
__________________
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!





Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 6 Bundling a Database pg 231 mtvoyd BOOK: Beginning Android Application Development 6 January 18th, 2012 08:06 PM
Chapter 6, p. 230+231, step 3+4 TorbenR BOOK: Beginning SharePoint 2010 Development 0 September 1st, 2011 07:51 AM
chapter 6 try it out p.231 Mohammed87 BOOK: Beginning ASP.NET 4 : in C# and VB 3 August 16th, 2011 12:38 PM
Chapter 4 - Switching Views tfiPadn00b BOOK: Beginning iPad Application Development 5 December 20th, 2010 11:01 AM
Theme switching won't "stick" ksnortum BOOK: Beginning ASP.NET 4 : in C# and VB 5 December 6th, 2010 06:52 PM





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