Wrox Programmer Forums
BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0
This is the forum to discuss the Wrox book ASP.NET 2.0 Website Programming: Problem - Design - Solution by Marco Bellinaso; ISBN: 9780764584640
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 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 August 3rd, 2009, 05:21 AM
Authorized User
Join Date: Mar 2009
Posts: 75
Thanks: 16
Thanked 1 Time in 1 Post
Default Adding custom sitemap and preserving pattern

I want to add a custom sitemap that populates data from a database.
It's based on this article:http://msdn.microsoft.com/en-us/magazine/cc163657.aspx

The problem is that i don't want to break the BLL-DAL pattern.
In given example the overrided BuildSiteMap() function directly access database to retrieve data and I want to use already existing objects.

So I want to remove all database accessing part.

The problematic part is the Initialize SQL cache dependency and linking to SqlSiteMapProvider class .
new object(), dependency,
new CacheItemRemovedCallback(
If I use the existing classes (in dal and BLL), I don't know if it's possible to invoke call back from there.

I know that my question is not clear, so to summarize it:
I want to move all database related code to existing bll-dal calsses and still be able to use dependency.

Similar Threads
Thread Thread Starter Forum Replies Last Post
C# adding custom controls in vs toolbox Khasim Visual Studio 2005 0 April 23rd, 2007 07:27 AM
Adding Custom Controls to the Studio's toolbar devdev Visual Studio 2005 0 May 21st, 2006 04:17 PM
DirectoryInfo.GetFiles(pattern): search pattern fo arif_1947 VS.NET 2002/2003 1 October 19th, 2004 11:59 PM

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