嗨,我在母版页中有一个站点地图。我需要将查询字符串动态传递给我的站点地图。有没有人有这方面的经验。这是我的代码
网站地图
<?xml version="1.0" encoding="utf-8" ?>
<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >
<siteMapNode url="" title="Employee Benefit" description="">
<siteMapNode url="~/Module/EB/Company/CompanyList.aspx" title="Company list" description="Company List" >
<siteMapNode url="~/Module/EB/Company/CompanyDetail.aspx" title="Company Detail" description="Company Detail" >
<siteMapNode url="~/Module/EB/Employee/EmployeeDetail.aspx" title="Employee Detail" description="Employee Detail" />
</siteMapNode>
</siteMapNode>
</siteMapNode>
</siteMap>
大师.aspx
<asp:SiteMapPath ID="SiteMapPath1" runat="server" Font-Names="Microsoft New Tai Lue"
Font-Size="0.9em" PathSeparator=" : " SkipLinkText="" Font-Bold="False"
style="font-family: 'Times New Roman', Times, serif; font-size: small"
Visible="True" >
<CurrentNodeStyle ForeColor="#333333" />
<NodeStyle Font-Bold="True" ForeColor="#284E98" />
<PathSeparatorStyle Font-Bold="True" ForeColor="#507CD1" />
<RootNodeStyle Font-Bold="True" ForeColor="#507CD1" />
</asp:SiteMapPath>
顺便一提。我的站点地图可能有多个子站点地图节点。例如
companylist -> companydetail -> EmployeeDetail->.....
如何将查询字符串传递给其他子 sitemapNope ?
companylist -> companydetail?subID=1 -> EmployeeDetail?subID=2 ->....