根据条件隐藏TreeViewNodes [英] Hide TreeViewNodes based on conditions
本文介绍了根据条件隐藏TreeViewNodes的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好
我想知道你们是否可以帮助我。我在ASP项目中有一个站点地图,但在某些情况下我想隐藏一些节点。如果你能指出我正确的方向,那将会很有帮助
网站地图:
Hi Guys
I wonder if you guys can help me. I have a sitemap in my ASP Project but in some conditions I want to hide some nodes. If you can point me in the right direction it would be helpfull
Sitemap:
<?xml version="1.0" encoding="utf-8" ?>
<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >
<siteMapNode url="Information.aspx" title="Home" description="" >
<siteMapNode url="frmUserDetails.aspx" title="User Details" description="" />
<siteMapNode url="frmRegister.aspx" title="Add User" description="" />
<siteMapNode url="" title="Password Details" description="" >
<siteMapNode url="frmChangePassword.aspx" title="Change Password" description="" />
</siteMapNode>
<siteMapNode url="frmProduct.aspx" title="Product" description=""/>
</siteMapNode>
</siteMap>
推荐答案
您的解决方案在这里:如何隐藏TreeView节点 [ ^ ]
Your solution is here : How to Hide TreeView Node[^]
我找到了解决方案。我创建了一个包含所有节点的sql表。根据我的条件,我的表格中将选择正确的节点。
I found a solution. I created a sql table with all my nodes. depending my condition the correct nodes will be select in my table.
这篇关于根据条件隐藏TreeViewNodes的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文