zoukankan      html  css  js  c++  java
  • asp.net向Google提交Sitemap的代码

    这两天给自己网站写了提交sitemap的代码,如果是新手,请过来看,如果是高手,可以不用看。

    aspx代码

    Code

    cs代码:

    Code

    另1:XmlWriter writer = XmlWriter.Create(writer1, settings); 如果 writer1是直接文件路径如 d:\TestFolder\TestFile.xml 则settings有效果,不然无效。
    哪位知其原,请告诉我。不甚感谢。

    另2:google sitemap 暂不支持二级域名的提交,哪位有好方法,欢迎献上来。

    阿里云优惠券领取地址:https://partner.aliyun.com/shop/35783975 ,需要更多优惠请联系QQ和微信:891115,热线:400-968-4968
  • 相关阅读:
    Python-函数
    Python-运数符
    Python-条件判断
    Python-变量
    移动端页面布局的那些事儿
    关于ie7下display:inline-block;不支持的解决方案
    SuperSlidev2.1 轮播图片和无缝滚动
    解决xmapp中Apache端口号占用问题
    npm 常用命令详解
    python函数总结
  • 原文地址:https://www.cnblogs.com/coolbug/p/1410224.html
Copyright © 2011-2022 走看看