Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| 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 May 18th, 2011, 03:22 PM
Registered User
 
Join Date: May 2011
Posts: 4
Thanks: 2
Thanked 0 Times in 0 Posts
Default Chapter 7 - Creating Menu

Hello
i'm having a problem with creating the menu according to the book.
the problem is with hovring over the menu.
when i'm hovering the display is the title of the item instad of the sub items.
i've double checked and re-did the code. i've also checked the source code on this chapter and it looks ok.

i'm using
win XP SP3
VWD2008 express
chrome

thank you
Dvir

Code:
 <div id="MenuWrapper":>
       <asp:Menu ID="Menu1" runat="server" DataSourceID="SiteMapDataSource1" 
         Orientation="Horizontal" StaticEnableDefaultPopOutImage="False" 
         StaticPopOutImageTextFormatString=" ">
         <StaticMenuItemStyle ItemSpacing="10px" />    
       </asp:Menu>
       <asp:SiteMapDataSource ID="SiteMapDataSource1" runat="server" 
         ShowStartingNode="False" />
     </div>
Reply With Quote
  #2 (permalink)  
Old May 18th, 2011, 03:33 PM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

Hi there,

Do you see the same issue on the Planet Wrox site at: http://aspnet35.planetwrox.com/

If not, can you post the code for the sitemap.xml file?

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
  #3 (permalink)  
Old May 18th, 2011, 03:51 PM
Registered User
 
Join Date: May 2011
Posts: 4
Thanks: 2
Thanked 0 Times in 0 Posts
Default

i'm not having the problem in the site

here is the code for the site map

Code:
<?xml version="1.0" encoding="utf-8" ?>
<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >

/*the rest is ok and according to the book and source file */
those may also help

source code in browser - hidding sub item (if i understand the book right)

Code:

</style>

<link href="App_Themes/Monochrome/Monochrome.css" type="text/css" rel="stylesheet" /><style type="text/css">

	.ctl00_Menu1_0 { background-color:white;visibility:hidden;display:none;position:absolute;left:0px;top:0px; }

	.ctl00_Menu1_1 { text-decoration:none; }

	.ctl00_Menu1_2 {  }

	.ctl00_Menu1_3 {  }

	.ctl00_Menu1_4 {  }



</style></head>
also, if i'm understaing correctly, a JavaScript code suppoed to appear in the HTML code of the Source in the browser.
i can't find it. can this be the problem?
Reply With Quote
  #4 (permalink)  
Old May 18th, 2011, 04:01 PM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

Quote:
/*the rest is ok and according to the book and source file */
Can you post it nontheless?

Otherwise, it's a bit hard to reproduce...

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
  #5 (permalink)  
Old May 18th, 2011, 04:02 PM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

Code:
 
<div id="MenuWrapper":>
Also, what's that funky colon doing there?

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:
dvirdukhan (May 18th, 2011)
  #6 (permalink)  
Old May 18th, 2011, 04:07 PM
Registered User
 
Join Date: May 2011
Posts: 4
Thanks: 2
Thanked 0 Times in 0 Posts
Default

oops...

here's the code for web.sitmap

Code:
<?xml version="1.0" encoding="utf-8" ?>
<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >
    <siteMapNode url="~/" title="Home"  description="Home">
      <siteMapNode url="~/Default.aspx" title="Home"  description="Go to the Homepage" />
      <siteMapNode url="~/Reviews/Default.aspx" title="Reviews"  description="Reviews published on this site" >
        <siteMapNode url="~/Reviews/AllByGenre.aspx" title="By Genre" description="All Reviews Grouped by Genre" />
        <siteMapNode url="~/Reviews/All.aspx" title="All Reviews" description="All Reviews" />
      </siteMapNode>
      <siteMapNode url="~/About/Default.aspx" title="About" description="About This Site" >
        <siteMapNode url="~/About/Contact.aspx" title="Contact Us" description="Contact Us" />
        <siteMapNode url="~/About/AboutUs.aspx" title="About Us" description="About Us" />
      </siteMapNode>
      <siteMapNode url="~/Login.aspx" title="Login" description="Log in to this web site" />
    </siteMapNode>
</siteMap>
Reply With Quote
  #7 (permalink)  
Old May 18th, 2011, 04:17 PM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

Ah, I see. I can reproduce this in Chrome.

Maybe you're running into the same issue as described here? http://p2p.wrox.com/book-beginning-asp-net-3-5-c-vb-book-isbn-978-0-470-18759-3/80175-chapter-7-page-249-try-out.html

Does the menu look good on other browsers?

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:
dvirdukhan (May 18th, 2011)
  #8 (permalink)  
Old May 18th, 2011, 04:40 PM
Registered User
 
Join Date: May 2011
Posts: 4
Thanks: 2
Thanked 0 Times in 0 Posts
Default

it is ok on FireFox

thank you
Reply With Quote
  #9 (permalink)  
Old May 18th, 2011, 04:42 PM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

That may confirm it's the same issue and that patching your server might do the trick.

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
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
Creating a Menu Programmatically in WPF/C# csharp567 BOOK: WPF Programmer's Reference: Windows Presentation Foundation with C# 2010 and .NET 4 2 November 1st, 2010 10:06 PM
Creating Dynamic Menu in JSP rama26 J2EE 1 January 13th, 2010 09:13 AM
creating a dynamic menu using XML swatianand ASP.NET 3.5 Basics 1 December 14th, 2009 02:57 AM
Creating Menu Icons sureshkumarct Beginning VB 6 2 January 23rd, 2006 04:28 AM
Creating simple Menu godhsf80 Javascript 1 November 30th, 2003 12:23 AM



All times are GMT -4. The time now is 02:40 AM.


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