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 May 22nd, 2009, 01:17 PM
Registered User
 
Join Date: May 2009
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter 7 Submenus

After working through the ty-it-outs in the chapter using VB, I get to page 252 and still have a problem with the submenus. When I hover over a menu item like "Review", I only get a small white box below "Review". It doesn't even seem to be listing the submenu items. Nothing happens when I click on the white box.

I have compared my code to the sample code from the website and cannot see a difference. I have done the TreeView exercise on 254 and it works fine but still now submenus from the Monochrome theme.

Help!

Thanks,
Pat
 
Old May 22nd, 2009, 01:59 PM
Registered User
 
Join Date: May 2009
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I found the problem. I had to change IE8 to "compatibility mode".

Another question about the code on page 250. Why is ".StaticMenuItemStyle" listed twice on the first line? Why are there two sections for ".DynamicHoverStyle"?


Thanks,
Pat
 
Old May 24th, 2009, 09:19 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 Pat,

While using compatibility mode certainly works, it's probably better to fix the problem at its root. IE8 behaves different from IE7 with respect to the asp;Menu. The ASP.NET team recognized the problem and has released a fix for it. If you install the fix, the menu behaves the same in IE8 as it does in other browsers.

For more info and a download link: IE8 and the Menu

With regards to page 250, take a look at this:

.StaticMenuItemStyle, .StaticMenuItemStyle a

Although it seems that StaticMenuItemStyle is listed twice, these are really two different selectors. One for the StaticMenuItemStyle class and one for anchors (links) *within* the StaticMenuItemStyle class (e.g. .StaticMenuItemStyle a)

The same is true for the other selectors you see twice: one is for the containing element; the other for the links they contain.

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 May 24th, 2009, 11:50 AM
Registered User
 
Join Date: May 2009
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks! Last night I did find the info about the IE8 fix while I was browsing the messages on this board.

BTW, great book. I have many years programming experience but am new to Web programming. Am about half way through your book and am finding it really worth my time. It's a well written book with a great format.

Pat
 
Old May 25th, 2009, 04:14 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Quote:
BTW, great book. I have many years programming experience but am new to Web programming. Am about half way through your book and am finding it really worth my time. It's a well written book with a great format.
Thank you. Spread the word, spread the word ;-)

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 2 - End of chapter exercises whizzkid1892 BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 1 July 30th, 2008 12:02 PM
Generics chapter 12 difficult chapter i found ...? Larryz C# 2005 1 July 4th, 2007 09:40 PM
Submenus shan_cool PHP How-To 0 April 5th, 2006 02:16 AM
dynamically generated submenus elladi Dreamweaver (all versions) 9 December 24th, 2004 08:12 AM





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