Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3
This is the forum to discuss the Wrox book Beginning ASP.NET 3.5: In C# and VB by Imar Spaanjaars; ISBN: 9780470187593
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 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 August 17th, 2009, 12:19 PM
Authorized User
 
Join Date: Jun 2009
Posts: 70
Thanks: 18
Thanked 1 Time in 1 Post
Default MasterPage.master - where does MainMenu Class get declared?

I am developing a site based on - but not identical to - the book site. In particular there are no themes or skins, and only one style sheet. For the most part it is going well, until I have come to styling the menus. In the book MasterPage.master a CSS class MainMenu is called up - but I can't find it declared in any style sheet. I am, obviously missing a trick - please advise!
 
Old August 17th, 2009, 12:28 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 there,

It's defined in the Monochrome.css file that you add to the theme by dragging it from the Resources folder.

Check out Resources\Chapter 06 that comes with the book.

DarkGrey doesn't have this class as it doesn't use a Menu.

Hope this helps,

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 August 17th, 2009, 01:00 PM
Authorized User
 
Join Date: Jun 2009
Posts: 70
Thanks: 18
Thanked 1 Time in 1 Post
Default

Gotcha!. And I have been able to apply further styling as required. I will probably tidy up things further by taking up your suggestion on page 245 about ASP.NET Friendly Control Adapters - once I have the guts of the site sorted out.

But I am still curious, how does the Monochrome style sheet get picked up for rendering in the browser? I am sure you have covered it somewhere - but it has been a lot to take in.
 
Old August 17th, 2009, 01:32 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

It's located in the Monochrome folder under App_Themes and is loaded by ASP.NET automatically when Monochrome is the active theme. It can be the active theme because you configured it so in web.config or because the user chose Monochrome as the preferred theme.

Refer to pages 214, and 222 and 226 to see how that works.

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!
The Following User Says Thank You to Imar For This Useful Post:
kiwibrit (August 17th, 2009)
 
Old August 17th, 2009, 04:26 PM
Authorized User
 
Join Date: Jun 2009
Posts: 70
Thanks: 18
Thanked 1 Time in 1 Post
Default

OK. Thanks.





Similar Threads
Thread Thread Starter Forum Replies Last Post
.MainMenu Rachel BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 5 December 27th, 2008 07:16 PM
Name 'CAM' is not declared. belmin45 ASP.NET 1.0 and 1.1 Basics 2 May 27th, 2008 02:13 AM
BC30451: Name 'My' is not declared abc052107 Visual Studio 2005 0 July 2nd, 2007 11:01 PM
Hiding Publicly Declared Base-Class Methods icecrew VB.NET 1 November 17th, 2006 05:42 PM





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