p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   BOOK: Beginning ASP.NET 4 : in C# and VB (http://p2p.wrox.com/forumdisplay.php?f=560)
-   -   Web.sitemap (http://p2p.wrox.com/showthread.php?t=81151)

lustigon October 4th, 2010 06:16 PM

Web.sitemap
 
Hi there coding mates...
Chapter 7-Web.sitemap file.
I have a question about the web.sitemap file.
For example from this file:
Code:


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

About, has 2 child nodes.
When user clicks on About in the menu, he will get the Default.aspx page, which has nothing in it, am I missing something? or may be this problem gets fixed later in the book?
Same goes for the Reviews menu item, it also has 2 child nodes, but clicking on Reviews, will lead to a default.aspx...

10x..[:o]

Imar October 5th, 2010 02:16 AM

Yes, the pages and their content are created later. Page 254, step 3 says:

Quote:

Next, create the following folders and Web Forms that you’ll use in this and later chapters.
Other chapters later in the book change the contents of these pages (for example, the Reviews pages are used in the chapters on databases).

Cheers,

Imar

lustigon October 6th, 2010 11:34 AM

Hi Imar and 10x for replying.
The main reason I posted this question is because in the website that we are eventually should come up with (http://aspnet4.planetwrox.com/), when clicking on the "About" menu item, the page that is presented is empty-http://aspnet4.planetwrox.com/About/Default.aspx.

In your answer you wrote that Reviews will be used for some purposes, and I understood that, but what about http://aspnet4.planetwrox.com/About/Default.aspx ?

10x again for your time...[:o]

Imar October 6th, 2010 11:40 AM

That page remains empty in the demo site but you can use it to enter content yourself to describe the site....

Imar


All times are GMT -4. The time now is 06:02 PM.

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