Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 4 : in C# and VB
This is the forum to discuss the Wrox book Beginning ASP.NET 4: in C# and VB by Imar Spaanjaars; ISBN: 9780470502211
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 4 : in C# and VB 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 October 16th, 2010, 10:56 AM
Authorized User
Points: 267, Level: 5
Points: 267, Level: 5 Points: 267, Level: 5 Points: 267, Level: 5
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2010
Posts: 56
Thanks: 17
Thanked 2 Times in 2 Posts
Default Ch 7 Page 247 VWD flags errors

Hi Imar,
In the try-it-out on page 247, VWD is flagging errors for two of the siteMapNodes.
1: The siteMapNode for ~/About/Default.aspx
2: The closing </siteMapNode> after the About Us line.

On page 246 you say "...there can only be one siteMapNode directly under the siteMap element."

However, the code in the book and in the resource file seems to violate this rule. (Or so it seems to me :-)

The code that I typed is the first codeblock. The code from resources is the second codeblock.

Thanks
Ken
--------------------
My Code
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 home page" />
      <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" />

</siteMap>
From RESOURCES
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 home page" />
    <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" />

</siteMap>
 
Old October 16th, 2010, 11:04 AM
Authorized User
Points: 267, Level: 5
Points: 267, Level: 5 Points: 267, Level: 5 Points: 267, Level: 5
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2010
Posts: 56
Thanks: 17
Thanked 2 Times in 2 Posts
Default

OK,
I found the errors!
I made the "common mistakes" before reading the "common mistakes" warning panel!

Good learning exercise!
Great book.
Thanks
Ken

Last edited by ken evans; October 16th, 2010 at 11:05 AM.. Reason: typo





Similar Threads
Thread Thread Starter Forum Replies Last Post
CH 13 some errors solved sporik BOOK: Beginning PHP 6, Apache, MySQL 6 Web Development ISBN: 9780470391143 0 December 4th, 2009 01:31 PM
Ch. 12 - SqlDataSource Designer Errors llealii BOOK: Professional ASP.NET 2.0 Server Control and Component Development ISBN: 978-0-471-79350-2 2 April 11th, 2007 11:14 AM
How to use the flags int common dialog box diegoblin Beginning VB 6 2 November 8th, 2006 03:41 PM
ch.14 file errors caseyc BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 10 February 28th, 2006 03:59 PM





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