Sorry, just realized that in function GetNavigatedNodeIndex, you don't need to check Request.Url.AbsolutePath, since Request.Url.AbsoluteUri contains the path. So the correct code is:
private string GetNavigatedNodeIndex( TreeNodeCollection tnc ) {
...
if ( tn.NavigateUrl.Length > 0...
Hi mrathi and others!
I've had the same problem, and I think I may have figured out a solution WITHOUT using querystrings.
I created a recursive function to solve the problem. The code is below:
private string GetNavigatedNodeIndex( TreeNodeCollection tnc )
{
foreach ( TreeNode tn in tnc )...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.