Click here to Skip to main content
15,916,417 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I want to get back on the same node of the treeview which i have selected, after the page refreshing in my asp.net application.... can any one help me out???? Thanx in adv...
Posted
Comments
CodingLover 22-Nov-11 22:34pm    
Can you do it in client side, may be using a temporary cookie.
Naikniket 22-Nov-11 22:42pm    
nope

1 solution

You can retain the current selected node info at server cache and then set the default selection as the cached node. To fetch the last selected node, code is:

C#
System.Windows.Forms.TreeNode cacheNode = myTreeView.SelectedNode;
 
Share this answer
 
Comments
Naikniket 22-Nov-11 22:45pm    
it's not working.. :(

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900