为 ASP.NET 应用程序创建动态站点地图页面 - C#

发布于 2024-09-26 11:35:59 字数 174 浏览 0 评论 0原文

我创建了一个 ASP.Net 应用程序,它基本上用作内容管理站点。我需要为我们的网站创建一个动态的站点地图。我尝试过用于 ASP.net Ajax 的 Telerik 站点地图控件,发现它很有用。在继续使用 telerik 控件之前,我想知道在 ASP.net 应用程序中创建动态站点地图页面的最佳方法是什么。

谢谢。

I have created a ASP.Net application which basically serves as a content management site. I need to create a Sitemap for our website which should be dynamic. I've tried Telerik's Sitemap control for ASP.net Ajax and found it useful. I want to know which is the best way to create a dynamic site map page in an ASP.net application before i proceed with the telerik control.

Thank you.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

卸妝后依然美 2024-10-03 11:35:59

如果不知道您使用的是哪个版本的 .NET,则很难给出单一答案。

一种与 ASP.NET 2.0 兼容的方法记录在 http://www.codeproject.com/ KB/aspnet/dynamicsitemap.aspx

如果您使用的是 ASP.NET 3.5 或更高版本,并且可以使用 LINQ,则可以从 StaticSiteMapProvider 派生一个类,如 http://www.dotnetcurry.com/ShowArticle.aspx?ID=281&AspxAutoDetectCookieSupport=1

Without knowing which version of .NET you are using, it's a bit difficult to give a single answer.

One approach compatible with ASP.NET 2.0 is documented at http://www.codeproject.com/KB/aspnet/dynamicsitemap.aspx.

If you're using ASP.NET 3.5 or higher, and can use LINQ, you can derive a class from StaticSiteMapProvider, as shown in http://www.dotnetcurry.com/ShowArticle.aspx?ID=281&AspxAutoDetectCookieSupport=1.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文