protected void tvTreeview_SelectedNodeChanged(object sender, EventArgs e)<br /> {<br /> TreeNode tn = tvTreeview.SelectedNode;<br /> Node selectednode = (Node)tn; //Exception thrown at this line<br /> }<br />
tvTreeview_SelectedNodeChanged
sender
Treeview tree = sender as TreeView; Node node = tree.SelectedNode as Node;
TreeNode
Node
TreeNode tn = new Node(); Node n = (Node) tn;
tn
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)