 |
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
|
|
|
|
|

May 22nd, 2014, 12:57 PM
|
|
Registered User
|
|
Join Date: May 2014
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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?
|
|

May 23rd, 2014, 11:28 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
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
|
|

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

May 23rd, 2014, 02:39 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
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
|
|
 |
|