【发布时间】:2011-05-23 14:26:52
【问题描述】:
我的应用程序中有此配置。
~/sitemap.aspx ~/Web.sitemap ~/mobile/sitemap.aspx ~/mobile/Web.sitemap
“mobile”文件夹不是应用程序,由于某种原因我无法转换它。因此没有 webconfig 文件。
我在这里要做的是使用 ~/mobile/Web.sitemap 作为 ~/mobile/sitemap.aspx 中树视图控件的站点地图数据源。
当我放置此代码时:
<asp:SiteMapDataSource runat="server" ID="MobileSiteMap" />
<asp:TreeView ID="trvSiteMap" runat="server" DataSourceID="MobileSiteMap" />
它加载 ~/Web.sitemap 而不是 ~/mobile/Web.sitemap
有什么想法吗?
【问题讨论】:
标签: asp.net sitemap subdirectory