Wrox Programmer Forums
|
BOOK: ASP.NET 3.5 Website Programming Problem Design Solution
This is the forum to discuss the Wrox book ASP.NET 3.5 Website Programming Problem Design Solution by Chris Love; ISBN: 978-0-470-18758-6
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET 3.5 Website Programming Problem Design Solution 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 February 25th, 2010, 11:47 AM
Registered User
 
Join Date: Feb 2010
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default SiteMap - Initially populating with data

In another post, you mentioned that records in the SiteMap table are created in code, giving the example of creating a new article as one process where a new record is added to the SiteMap.

What about when you create a new page yourself?

I am using your book and sample code as a starting point for a custom website I am working on. I am copying and modifying files one at a time as I work through the book. I am through chapter 3 and have create the basic framework for the site; Master page, sub-master pages, themes, a default.aspx page and a contacts.aspx page.

I have created the separate code library and added many of the class files that you have in the sample code. I created a SiteMapEntity following your Chapter 3 example and I have copied the files in the Navigation folder to a similar folder in my library.

I can build and run the site, getting the default page and the contacts page. But I am not getting any SiteMapPath displayed. I do not have any data in the SiteMap table. Should adding pages like the contact.aspx and default.aspx to the site automatically generate records in the SiteMap table? If so, where is the code that actually does this?

Thanks,

Dave
 
Old February 26th, 2010, 09:39 AM
Registered User
 
Join Date: Feb 2010
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I searched through your Beerhouse35 source code and it looks like the only places where sitemapinfo records are created are when you create new dynamic pages, such as an Article. I ended up manually adding records for my static pages to the SiteMap table. If I am missing something here regarding adding static pages to the Sitemap table in code, please let me know.

BTW, great book.

Thanks,

Dave





Similar Threads
Thread Thread Starter Forum Replies Last Post
Populating an array from a filtered data SMI// Excel VBA 1 August 4th, 2009 07:12 PM
Populating an array from a filtered data SMI// Excel VBA 2 July 27th, 2009 12:44 PM
Populating data in subforms michayos Infopath 0 May 25th, 2007 10:40 AM
WebShop: populating data from different db JoinTTT BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 3 April 7th, 2007 04:54 PM
MSChart - Populating Data kasie Beginning VB 6 1 June 11th, 2003 06:00 AM





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