...
首页> 外文期刊>MSDN Magazine >Wicked Code: Three Cures for Common Site Map Ailments
【24h】

Wicked Code: Three Cures for Common Site Map Ailments

机译:邪恶的代码:常见站点地图异常的三种治愈方法

获取原文
获取原文并翻译 | 示例
   

获取外文期刊封面封底 >>

       

摘要

Data-driven site navigation is among the niftiest and most useful features in ASP.NET 2.0. To get it working, all you do is create an XML site map file (or a SQL site map if you're using the MSDN~® Magazine SqlSiteMapProvider), add a SiteMapDataSource, and bind a Tree View or Menu to the SiteMapDataSource. Just like that, you have a data-driven navigation UI. If the structure of your site changes, simply update the site map and the navigation UI changes to match. For good measure, you can throw in a SiteMapPath control to implement a bread crumb element showing the path to the current page.
机译:数据驱动的站点导航是ASP.NET 2.0中最灵活,最有用的功能之一。为了使其正常工作,您要做的就是创建一个XML网站地图文件(如果使用的是MSDN〜®Magazine杂志SqlSiteMapProvider,则创建一个SQL网站地图),添加一个SiteMapDataSource,并将树视图或菜单绑定到SiteMapDataSource。像这样,您就有了一个数据驱动的导航UI。如果您的网站结构发生变化,只需更新站点地图,导航UI就会更改为匹配。为了获得良好的效果,您可以放入SiteMapPath控件以实现显示当前页面路径的面包屑元素。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号