![](/img/trans.png)
[英]How to check the permissions to navigate the page in tree view child node using asp.net?
[英]how to get the last child of the parent node in Tree View using asp.net?
我已经在asp.net中创建了树形视图,我想获取当前所选父节点的最后一个子节点。
请引导我摆脱这个问题?
使用此代码获取当前所选节点中的最后一个子节点:
TreeNode t=TreeView1.SelectedNode.ChildNodes[TreeView1.SelectedNode.ChildNodes.Count - 1];
希望这对您有所帮助。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.