If you create a custom TreeView
and TreeNode
like this:
public class CustomTreeNode : TreeNode
{
private int customInt;
public int CustomInt
{
get
{
return customInt;
}
set
{
customInt= value;
}
}
}
public class CustomTreeView : TreeView
{
protected override TreeNode CreateNode()
{
return new CustomTreeNode();
}
}
How do I use this in code? How in my aspx page can I use this TreeView
?