ASP.Net Custom TreeView and TreeNode .. InvalidCastException

I had to create custom TreeView and TreeNode, and weirdly getting Invalid Cast Exception while I was iterating Nodes and while casting them to my custom TreeNode…. It seems you have to override CreateNode method in your custom TreeView class and return your TreeNode instance from it….


No comments yet.

Add Yours

  • Author Avatar


Comment Arrow

About Author


This author has not yet written a description. Please give them some time to get acquainted with the site and surely they will write their masterpiece.