Subject: treeview
Posted By: mahmutmol Post Date: 8/21/2006 6:43:15 AM

i have a problem with treeview in asp .net.
i derive TreeNode class to MyTreeNode, and add some fields.
then i add MyTreeNode objects to the treeview instead of TreeNode objects.
in the
protected void TreeView1_TreeNodeExpanded(object sender, TreeNodeEventArgs e)

event i use

((MyTreeNode) e.Node.ChildNodes[i]).Kod

but i got the the following error

Unable to cast object of type 'System.Web.UI.WebControls.TreeNode' to type 'MyTreeNode'.

can you help me?





Go to topic 48621

Return to index page 198
Return to index page 197
Return to index page 196
Return to index page 195
Return to index page 194
Return to index page 193
Return to index page 192
Return to index page 191
Return to index page 190
Return to index page 189