2

I'm trying to convert treeview that uses the older htc tag< iewc:treeview> to use the newer asp treeview tag < asp:TreeView >. I noticed that the treeview object is different as in the older code uses the import Microsoft.Web.UI.WebControls compared to the newer code System.Web.UI.WebControls. Can someone point me in the right direction of converting these data types easily?

To provide a example where I'm having trouble, the old treenode has members which are not found in the newer treenode . For example I can't seem to find the equilavilant for the member NodeData

     myTreeNode.NodeData = "test string"

in the treeNode found in System.Web.UI.WebControls.

This is the link I used for reference for the System.Web.UI.WebControls treeNode https://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.treenode(v=vs.100).aspx

However I can't find one for Microsoft.Web.UI.WebControls.

3
  • 1
    When the Ajax toolkit first came out I think the controls were in the Microsoft.web namespace. Eventually the controls were moved into the .net framework and system.web namespace Commented Dec 1, 2015 at 23:13
  • 1
    Here's the reference for the Microsoft.Web.UI.WebControls. Scroll way down to find the TreeView link. Here's another link to explain how you can still live in the past with IE at least. Commented Dec 1, 2015 at 23:24
  • Just what I was looking for. Thanks! Commented Dec 3, 2015 at 16:46

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.