SqlSiteMapProvider

by lichen 1/30/2006 9:24:00 AM

Jeff Prosise has a nice article on MSDN magazine about SqlSiteMapProvider. The provider is an update to the SqlSiteMapProvider in Microsoft Provider Toolkit which was authorized by the same author.

After using the provider in my website, I found that I have to change a few things:

  1. Changed the stored procedures to use Common Table Expression so that records where sorted in order even if they were populated out of order.
  2. Use the URL as key. The reason is that otherwise the items on a menu control that corresponds to the current page would not appear to be automatically selected. An alternative way to work around this problem is in this Danny Chen's blog.
  3. The SqlSiteMapProvider does not allow external URLs but the XmlSiteMapProvider does allow external URLs. The fault was really in StaticSiteMapProvider from which SqlSiteMapProvider was inherited from. The XmlSiteMapProvider overrides the AddNode method of StaticSiteMapProvider. Since the AddNode method was declared as internal override, we cannot override it. A workaround is to use an internal redirect page to redirect to an external URL.

Currently rated 5.0 by 1 people

  • Currently 5/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

.Net | ASP.NET

Related posts

Comments

Comments are closed

Powered by BlogEngine.NET 1.2.0.0
Theme by Mads Kristensen

About the author

Name of author Author name
Something about me and what I do.

E-mail me Send mail

Calendar

<<  May 2012  >>
MoTuWeThFrSaSu
30123456
78910111213
14151617181920
21222324252627
28293031123
45678910

View posts in large calendar

Pages

    Recent comments

    Authors

    Tags

      Disclaimer

      The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

      © Copyright 2012

      Sign in