Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 3.5 > BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 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 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!
Reply With Quote
  #2 (permalink)  
Old August 17th, 2009, 12:28 PM
Imar's Avatar
Wrox Author
Points: 72,038, Level: 100
Points: 72,038, Level: 100 Points: 72,038, Level: 100 Points: 72,038, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,080
Thanks: 80
Thanked 1,587 Times in 1,563 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!
Reply With Quote
  #3 (permalink)  
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.
Reply With Quote
  #4 (permalink)  
Old August 17th, 2009, 01:32 PM
Imar's Avatar
Wrox Author
Points: 72,038, Level: 100
Points: 72,038, Level: 100 Points: 72,038, Level: 100 Points: 72,038, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,080
Thanks: 80
Thanked 1,587 Times in 1,563 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!
Reply With Quote
The Following User Says Thank You to Imar For This Useful Post:
kiwibrit (August 17th, 2009)
  #5 (permalink)  
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.
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
.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



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


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