Last post Feb 06, 2019 02:07 AM by Nan Yu
Feb 04, 2019 11:10 PM|TejasviRebba|LINK
I need to create menu on right click on ASP:tree view and on click on that menu item i need to pass node value.
can someone share the code.
Feb 05, 2019 02:57 AM|Nan Yu|LINK
Both left and right clicks fire a click event and cause the selection to change , you can use the NodeMouseClick event:
private void treeView1_NodeMouseClick(object sender, TreeNodeMouseClickEventArgs e)
treeView1.SelectedNode = e.Node;
You can also refer to below links for code sample :
Feb 05, 2019 03:16 PM|TejasviRebba|LINK
I am using .Netframework 4.0 , So that event is not available for me.
Feb 06, 2019 02:07 AM|Nan Yu|LINK
Hi TejasviRebba ,
My mistake . Please refer to below links for code sample for webform treeview control :