• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 193
  • Last Modified:

Tree view Question

I am using a treeview control in asp.net
I just want to fetch the values of the selected nodes on the click of a button.
0
ASPNET_8
Asked:
ASPNET_8
  • 2
1 Solution
 
jagrut_patelCommented:
You wrote "selected nodes". So I assume your treeview uses checkable nodes.
If so then in button click you can use TreeView's CheckedNodes collection to get all the checked nodes.

If only one node in tree view is selected then you can use TreeView's SelectedNode property.
0
 
gery128Commented:
jagrut_patel has suggested the right way of looping through CheckedNodes of treeview.

Here is link to that:
http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.treeview.checkednodes.aspx

Does your requirement differ from that?
0
 
gery128Commented:
@ASPNET_8

No updates since long time.
0
 
ASPNET_8Author Commented:
ok
0

Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now