AspNetAtoms.com daily updates on ASP.NET Tutorials, Articles, Authors and more. Subscribe to our newsletter and receive updates on ASP.NET resources on the Internet.

Categories

Recent Posts

Build a SqlSitemapProvider Treeview Navigation Control with SqlCacheDependency : Peter Bromberg

Saturday, July 26 2008

How to create a Sitemap from a database table with the SqlSitemapProvider and use it to populate your web site's TreeView Navigation Control, with SqlCacheDependency built in. The ASP.NET treeview control, which now comes standard with ASP.NET 2.0, has the ability to use a Web SiteMap (not a Google sitemap - that's a different schema) as its datasource. (By the way - all three "big" search engines are reading sitemaps now. You can even put the url to it in your robots.txt! ) Back in 2005, Jeff Prosise had a nice MSDN magazine article where he created a SqlSiteMap Provider that stored the "tree data" and hierarchical relations in a self - referencing Sql Server table, and he used the ASP.NET menu control to illustrate it...

Read More:
Build a SqlSitemapProvider Treeview Navigation Control with SqlCacheDependency : Peter Bromberg
Also See:
Supporting Complex Types in Property Window : Bipin Joshi
The 30 Minute Regex Tutorial : Jim Hollenhorst
Retrieve data from a web page : Mark Smith
Cross-Page Posting in ASP.NET 2.0 : Richard Bean
Data Passing Round-Up : Steve C. Orr

Post your comment

Comment