简体   繁体   English

MVC3 中的站点地图,无需使用任何第三方工具

[英]Sitemap in MVC3 without using any third party tool

I am trying to create a sitemap in Asp.Net MVC3.我正在尝试在 Asp.Net MVC3 中创建站点地图。

Is there any control given by Microsoft to create a sitemap in MVC3 using Razor view Engine? Microsoft 是否提供任何控制以使用 Razor 视图引擎在 MVC3 中创建站点地图?

If not then, is it possible in MVC3 to to create a sitemap, without using any third party tool like Nuget MvcSiteMapProvider Package?如果没有,是否可以在 MVC3 中创建站点地图,而无需使用任何第三方工具,例如 Nuget MvcSiteMapProvider Package?

You can always roll your own, which is what I do, but here are some existing implementations:你总是可以推出自己的,这就是我所做的,但这里有一些现有的实现:

https://github.com/maartenba/MvcSiteMapProvider https://github.com/maartenba/MvcSiteMapProvider

http://keyvan.io/sitemap-action-result-for-asp-net-mvc http://keyvan.io/sitemap-action-result-for-asp-net-mvc

I use something similar to the second implementation and it has worked very well for me.我使用了类似于第二个实现的东西,它对我来说效果很好。

Before I started contributing to MvcSiteMapProvider , I searched for an answer myself and came to the conclusion the answer is no .在我开始为MvcSiteMapProvider做贡献之前,我自己搜索了一个答案,得出的结论是,答案是否定的 Microsoft didn't provide any built-in way to build a sitemap, search engine sitemaps files, or SiteMapPath controls in ASP.NET MVC, all of which MvcSiteMapProvider does. Microsoft 没有提供任何内置方法来构建站点地图、搜索引擎站点地图文件或 ASP.NET MVC 中的 SiteMapPath 控件,所有这些都是 MvcSiteMapProvider 提供的。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 我们如何仅使用C#而不使用任何第三方工具来进行UI自动化测试? - How can we do UI automation testing only using C# without any third party tool? 我们可以在没有任何第三方工具的情况下通过 C# 应用程序在 whats 应用程序上发送消息吗? - Can we able to send messages on whats app through C# application without any third party tool? 如何在没有点击一次和任何其他第三方工具的情况下在wpf中添加软件更新程序? - How to add Software updater in wpf without click once and any other third party tool? 通过编程无需任何第三方工具即可将PDF文档转换为Word文档(SSRS 2005) - Convert PDF document to Word document by programmatically without any third party tool (SSRS 2005) 如何在不使用任何第三方工具的情况下将流转换为Excel工作表(.xls和.xlsx) - How to convert stream into Excel sheet (.xls and .xlsx) without any third party tool 任何可用于多个文件上传的第三方工具 - any third party tool available for multiple file uploads 有没有其他方法在C#中使用WPF处理DICOM图像而没有任何第三方/库? - Is there any alternate way to processing DICOM images using WPF in C# without any third party/Library? C#窗口表单应用程序:是否可以在不使用任何第三方库的情况下将pdf转换为位图? - C# Window Form Application: Is there a way to convert pdf into bitmap without using any third party library? 从C#到MySQL的Connectiong,没有任何第三方组件? - Connectiong from C# to MySQL without any third party components? 有没有办法在不使用任何第三方库 asp.net 的情况下生成条形码并在 pdf 上写入条形码? - Is there any way generating barcode and write barcode on a pdf done without using any third party library asp.net?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM