站点地图

网站是由许多页面组成的,网站中页面之间的导航,即页面之间的相互连接,随着网站规模的越来越复杂而变得不容易管理。
可采用站点地图来配置页面之间的结构,使用可视化导航控件,如TreeView、SiteMapPath以及Menu控件。
<? xml version = " 1.0 "  encoding = " utf-8 "   ?>
< siteMap >
  
< siteMapNode title = " Home "  description = " Home "  url = " ~/home.aspx "   >
    
< siteMapNode title = " Products "  description = " Our products "
         url
= " ~/Products.aspx " >
      
< siteMapNode title = " Hardware "  
           description
= " Hardware we offer "  
           url
= " ~/Hardware.aspx "   />
      
< siteMapNode title = " Software "  
           description
= " Software for sale "  
           url
= " ~/Software.aspx "   />
    
</ siteMapNode >
    
< siteMapNode title = " Services "  description = " Services we offer "  
        url
= " ~/Services.aspx " >
      
< siteMapNode title = " Training "  description = " Training "  
          url
= " ~/Training.aspx "   />
      
< siteMapNode title = " Consulting "  description = " Consulting "  
          url
= " ~/Consulting.aspx "   />
      
< siteMapNode title = " Support "  description = " Support "  
          url
= " ~/Support.aspx "   />
    
</ siteMapNode >
  
</ siteMapNode >
</ siteMap >
站点地图文件是一个XML格式的文件,通过该文件实现站点结构的集中管理。第一个层次是Home.aspx页面,第二个层次是Products.aspx页面和Services.aspx页面。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值