I have a need to change the navigate URL of a treenode depending on the user group. Here is the code I am using to find the node.
Dim myNode As New TreeNode
Dim myTest As String = "Carpet/Vinyl Install Dates"
myNode = TreeView1.FindNode(Server.HtmlEncode(mytest))
myNode.NavigateUrl = "~/Inspections/frmInstallDates2.aspx"
When I look at the locals I can see this.
th "Carpet/Vinyl Install Dates" String
Yet the code above does not find the node. Any ideas.