ASP.NET Web.sitemap中来生成的sitemap.xml [英] ASP.NET Web.sitemap to Generate sitemap.xml

查看:177
本文介绍了ASP.NET Web.sitemap中来生成的sitemap.xml的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都知道的,可以被用于一个asp.net .sitemap文件转换成谷歌sitemap.xml的文件的任何程序的例子吗?你可能会认为这将是一个简单的过程,但我似乎无法在网上找到的例子。

Anyone know of any programming examples that could be used to convert an asp.net .sitemap file into a google sitemap.xml file? You'd think this would be an easy process but I can't seem to find any example online.

基本上我想要做的是设置一个处理程序,以便每当有人去 HTTP运行:// www.mydomain.com/sitemap.xml

Basically what I want to do is setup a handler so that will run whenever someone goes to http://www.mydomain.com/sitemap.xml.

我已经找到了如何做到这一点。我只需要code将在web.sitemap中的XML转换成sitemap.xml的语法。

I've already figured out how to do that. I just need the code that will convert the web.sitemap xml into the sitemap.xml syntax.

推荐答案

我总是preFER做我自己的code,而不是使用图书馆,在可能情况下,这样做,前段时间 - 找不到在code,现在,虽然这教程将让你去。它基本上读取地图,然后使用这些信息来创建一个新的谷歌地图。

I always prefer doing my own code, rather than use a library, where possible and did this some time ago - can't find the code right now, though this tutorial will get you going. It basically reads the sitemap and then uses the information to create a new google sitemap.

您还可以扩展它在你可能在一个数据库中的所有页面添加。天空的极限真的:)

you can also extend it to add in any pages you may have in a database. Skies the limit really :)

这是在C#和VB

这里是教程|动态创建谷歌地图ASPNET

这篇关于ASP.NET Web.sitemap中来生成的sitemap.xml的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆