站点地图路径取具体值
我的站点地图路径有问题 我有从坐地图路径获取的导航栏 但我希望页面中的站点地图路径粘性值作为产品 另外,我如何删除站点地图路径中的下划线
这是我的站点地图路径:
<asp:SiteMapPath ID="SiteMapPath1" runat="server" RenderCurrentNodeAsLink="True"
ForeColor="White">
<PathSeparatorStyle ForeColor="White" />
<NodeStyle ForeColor="White" />
<RootNodeStyle ForeColor="White" />
</asp:SiteMapPath>
I had a problem in site map path
I had navigation bar which take from sit map path
but I want site map path tack value from page as product
also how can i remove underline in site map path
this my site map path:
<asp:SiteMapPath ID="SiteMapPath1" runat="server" RenderCurrentNodeAsLink="True"
ForeColor="White">
<PathSeparatorStyle ForeColor="White" />
<NodeStyle ForeColor="White" />
<RootNodeStyle ForeColor="White" />
</asp:SiteMapPath>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
要使站点地图路径获取页面的值,只需将其包含在站点地图中即可。但如果您希望它采用动态值,那么我想您需要编写自己的站点地图提供程序。事实上,现在我正在尝试找到类似的解决方案......
并且为了防止下划线,为节点样式创建一个 Css 属性,并在该 css 类的定义中设置 text-decoration: none;
并将此样式添加到您的节点:
For the sitemappath to take the page's value just include it in you sitemap. But if you wish it to take a dynamic value then ı suppose you need to write your own sitemapprovider. Indeed nowadays I am trying to find a similar solution...
And to prevent underlining create a Css property for node style and within the definition of that css class set text-decoration: none;
and add this style to your node :