[英]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.