On my Master Page I have a WebDataTree with static Parent Nodes and I dynamically load the Child Nodes from a dataset. When populating the NavigateURL property the first tim around, the path is fine (ex: ~/_ChildFolder/mywebpage.aspx). When I click on a node, thus causing a postback, the target page loads just fine, however, when I go to click on the menu at that point, the folder name has been duplicated, so it is now ~/_ChildFolder/~ChildFolder/mywebpage.aspx....I have stepped through the entrire codebehind one step at a time and nowhere can I find where this is happening. My version is NetAdvantage ASP.Net v10.1. Please don't suggest I upgrade to 10.3 because I can't. Is this a known issue and/or has anyone observed this before?
Hello,
In order to look in to this, I would appreciate if you can provide me with the mark up of the tree as well as the approach (code) you are using to add nodes.
Thanks,
Bhadresh
In playing with this further after submitting the post, I found a fix. I was able to circumvent the behavior of the node determining the 'actual' path from the virtual path provided. What I did was to pull the base path (http://mywebsite/) from the Request.URL property and concatenate it with the 'virtual' part of the path provided (~/mysubfolder/mywebpage.aspx) to the node.NavigateUrl property and combine them into one string (http://mywebsite/mysubfolder/webpage.aspx ). This successfully bypasses the default behavior of the node which is incorrectly determining the actual path and adding the last clicked folder to all the nodes (http://mywebsite/othersubfolder/mysubfolder/webpage.aspx). Since the menu is built recurssively from a dataset, it was only 2 added lines of code. Thanks for the qucik response though.