K
Kasper Birch Olsen
Hi NG
I have a class that extends TreeNode, in order to "attach" extra
information. When someone clicks the tree, I want to do something like:
protected void myOnSelectedChange(object sender, eventargs e)
{
ExtendedTreeNode node = (ExtendedTreeNode)TreeView1.SelectedNode;
// do something with the node
}
problem is that I get an exception telling me that the specified cast is
invalid.
How can I fetch the "extended" information, rather than just a normal
treenode?
- Kasper
I have a class that extends TreeNode, in order to "attach" extra
information. When someone clicks the tree, I want to do something like:
protected void myOnSelectedChange(object sender, eventargs e)
{
ExtendedTreeNode node = (ExtendedTreeNode)TreeView1.SelectedNode;
// do something with the node
}
problem is that I get an exception telling me that the specified cast is
invalid.
How can I fetch the "extended" information, rather than just a normal
treenode?
- Kasper