Accessing ASP.NET TreeView Node Attributes
Posted on 2008-11-03
Does anyone know if there is a way to access the innerHTML or innerText properties of a TreeNode object?
There are only a few methods accessible for the Nodes of a TreeViewNodes object collection including Text, NavigateURL, ImageURL and Target. But I am wanting to add a custom attribute to the Node (not TreeView) level such as "rel=nofollow" to the Node's <a> tag.
There seems to be no way to do this on the Server side.
Does anyone have a solution that might work on either the Server or Client script side?