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

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

May 18th, 2011, 03:33 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
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
|
|

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

May 18th, 2011, 04:01 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
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
|
|

May 18th, 2011, 04:02 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
Code:
<div id="MenuWrapper":>
Also, what's that funky colon doing there?
Imar
|
|
The Following User Says Thank You to Imar For This Useful Post:
|
|
|

May 18th, 2011, 04:07 PM
|
|
Registered User
|
|
Join Date: May 2011
Posts: 4
Thanks: 2
Thanked 0 Times in 0 Posts
|
|
 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>
|
|

May 18th, 2011, 04:40 PM
|
|
Registered User
|
|
Join Date: May 2011
Posts: 4
Thanks: 2
Thanked 0 Times in 0 Posts
|
|
it is ok on FireFox
thank you
|
|

May 18th, 2011, 04:42 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
That may confirm it's the same issue and that patching your server might do the trick.
Cheers,
Imar
|
|
 |