1、添加一个网站地图项 Web.sitemap项

2、在 Web.sitemap项的写法如下:

<?xml version="1.0" encoding="utf-8"?>

<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0">

<siteMapNode url="default.aspx" title="首页" description="">

    <siteMapNode url="Supply.aspx" title="产品信息" description="" >

      <siteMapNode url="productdetails.aspx" title="产品详细信息" description="" />

    </siteMapNode>

<siteMapNode url="register.aspx" title="新用户注册"/>

    <siteMapNode url="Demand.aspx" title="产品信息" description="">     

    </siteMapNode>

    <siteMapNode url="Projects.aspx" title="招投标信息" description="">

      <siteMapNode url="DownLoad.aspx" title="相关表格下载" description="" />

      <siteMapNode url="ProjectInfor.aspx" title="招投标详细信息" description="" />

    </siteMapNode>

    <siteMapNode url="newsfront.aspx" title="新闻" description="">

      <siteMapNode url="news_detail.aspx" title="行业资讯详细信息" description="" />

      <siteMapNode url="company_details.aspx" title="会员展厅详细信息" description="" />

      <siteMapNode url="ManuscriptFront.aspx" title="在线投稿" description="" />

      <siteMapNode url="subject_detail.aspx" title="专题栏目详细信息" description="" />

      <siteMapNode url="expertinterview_detail.aspx" title="人物专访详细信息" description="" />

    </siteMapNode>

    <siteMapNode url="ForeTrain.aspx" title="培训咨询" description="">

      <siteMapNode url="TrainInfor.aspx" title="培训详细信息" description="" />

      <siteMapNode url="BusiHandBook.aspx" title="商务手册" description="" />

      <siteMapNode url="Technology.aspx" title="技术咨询" description="">

        <siteMapNode url="TechInfor.aspx" title="技术信息" description=""/>

      </siteMapNode>

      <siteMapNode url="Expert.aspx" title="专家顾问团" description="" />

    </siteMapNode>

    <siteMapNode url="ExhibitFront.aspx" title="机电信息展览馆" description="">

      <siteMapNode url="exhibit_detail.aspx" title="会展详细信息" description=""/>

    </siteMapNode>

</siteMapNode>

</siteMap>

3、在web.config文件中的配置如下:

<system.web>

<siteMap defaultProvider="XmlSiteMapProvider" enabled="true">

      <providers>

        <add name="XmlSiteMapProvider"

            description="SiteMap provider which reads in .sitemap XML files."

            type="System.Web.XmlSiteMapProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"

            siteMapFile="web.sitemap"/>

      </providers>

    </siteMap>

</system.web>

4、在页面需要网站地图的位置放入SiteMapPath控件,设置SiteMapPath的SiteMapProvider属性为config文件中的name的值:XmlSiteMapProvider

即完成网站地图的制作

SiteMapPath基本用法的更多相关文章

  1. “眉毛导航”——SiteMapPath控件的使用(ASP.NET)

    今天做网站的时候,用到了SiteMapPath控件,我把使用方法记录下来,以便日后查阅以及帮助新手朋友们. SiteMapPath”会显示一个导航路径(也称为痕迹导航或眉毛导航),此路径为用户显示当前 ...

  2. EditText 基本用法

    title: EditText 基本用法 tags: EditText,编辑框,输入框 --- EditText介绍: EditText 在开发中也是经常用到的控件,也是一个比较必要的组件,可以说它是 ...

  3. jquery插件的用法之cookie 插件

    一.使用cookie 插件 插件官方网站下载地址:http://plugins.jquery.com/cookie/ cookie 插件的用法比较简单,直接粘贴下面代码示例: //生成一个cookie ...

  4. Java中的Socket的用法

                                   Java中的Socket的用法 Java中的Socket分为普通的Socket和NioSocket. 普通Socket的用法 Java中的 ...

  5. [转载]C#中MessageBox.Show用法以及VB.NET中MsgBox用法

    一.C#中MessageBox.Show用法 MessageBox.Show (String) 显示具有指定文本的消息框. 由 .NET Compact Framework 支持. MessageBo ...

  6. python enumerate 用法

    A new built-in function, enumerate() , will make certain loops a bit clearer. enumerate(thing) , whe ...

  7. [转载]Jquery中$.get(),$.post(),$.ajax(),$.getJSON()的用法总结

    本文对Jquery中$.get(),$.post(),$.ajax(),$.getJSON()的用法进行了详细的总结,需要的朋友可以参考下,希望对大家有所帮助. 详细解读Jquery各Ajax函数: ...

  8. 【JavaScript】innerHTML、innerText和outerHTML的用法区别

    用法: <div id="test">   <span style="color:red">test1</span> tes ...

  9. chattr用法

    [root@localhost tmp]# umask 0022 一.chattr用法 1.创建空文件attrtest,然后删除,提示无法删除,因为有隐藏文件 [root@localhost tmp] ...

随机推荐

  1. 百度 Echart 的使用

    百度 Echarts 的使用 一.Echarts 简介 官方网站:http://echarts.baidu.com/ 下载地址:http://echarts.baidu.com/download.ht ...

  2. 闲话函数式变成与OOP

    函数式编程扫盲篇 推薦參考文獻地址:http://byvoid.github.io/slides/apio-fp/index.html 1. 概论 在过去的近十年的时间里,面向对象编程大行其道.以至于 ...

  3. [BZOJ1115][POI2009]石子游戏Kam解题报告|阶梯博弈

    有N堆石子,除了第一堆外,每堆石子个数都不少于前一堆的石子个数.两人轮流操作每次操作可以从一堆石子中移走任意多石子,但是要保证操作后仍然满足初始时的条件谁没有石子可移时输掉游戏.问先手是否必胜. 首先 ...

  4. Python生成requirements.txt包依赖管理文件

    requirements.txt是Python的依赖管理软件,和Java的POM一样. requirements.txt会生成使用了pip安装后的依赖包,在正常环境下会生成这个目录下的包/usr/lo ...

  5. [苹果]苹果AppStore应用审核标准

    [苹果]苹果AppStore应用审核标准 http://wenku.baidu.com/view/a9152d2c647d27284b7351a1.html   苹果app审核指南 http://we ...

  6. 【转】JavaScript eval处理JSON数据 为什么要加括号

    由于Ajax的兴起,JSON这种轻量级的数据格式作为客户端与服务器之间的传输格式逐渐地流行起来,进而出现的问题是如何将服务器端构建好的JSON数据转化为可用的JavaScript对象.利用eval函数 ...

  7. 任务调度框架Hangfire 简介

    任务调度是我们项目中常见的功能,虽然任务调度的功能实现本身并不难,但一个好用的轮子还是可以给我们的开发的效率提升不少的. 在.net环境中,较为有名的任务调度框架是HangFire与Quartz.NE ...

  8. PE Header and Export Table for Delphi

    Malware Analysis Tutorial 8: PE Header and Export Table 2. Background Information of PE HeaderAny bi ...

  9. HappyJTAG2 - JTAG AND SPI AVR8 interface EMBEDDED JTAG ! EMBEDDED SPI !

    New version released ! V2.45 (Check version list for details) This construction is based on HappyJTA ...

  10. USBDM RS08/HCS08/HCS12/Coldfire V1,2,3,4/DSC/Kinetis Debugger and Programmer -- Software Install

    Installation of USBDM for Windows Under Windows, installation is done with a standard Windows MSI fi ...