开发者

Design site map page [closed]

Closed. This question needs details or clarity. It is not currently accepting answers. 开发者_开发问答

Want to improve this question? Add details and clarify the problem by editing this post.

Closed 2 years ago.

Improve this question

I need to design a site map page of my website in asp.net.

I am confused whether to use custom site map and retrieve information from database, or directly retrieve information from database and bind it to hyperlink...

Please help.


The benefit of using a custom site map provider is that you can use it with the SiteMapPath, Menu, and TreeView controls. You also get access to security trimming, which is nice if your site map changes based upon permissions.

The downside is it can be fairly rigid when it comes to query strings, and you have to jump through the provider model hoops just to retrieve some data from the database.

I would say to use the custom provider if you plan on displaying the sitemap in multiple ways (Menu, SiteMapPath, etc) or need security trimming. If you don't, follow KISS, and just do your basic data access with hyperlinks.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜