Hi. Currently I'm evaluating the FlyTreeView for ASP.NET 2.0.
I add the tree programmatically in Page.Load like following:
protected void Page_Load(object sender, EventArgs e)
{
FlyTreeView tree = new FlyTreeView();
//tree.ID = "mytree";
for (int i = 0; i < 10; i++)
{
FlyTreeNode node = new FlyTreeNode();
node.Text = "node" + i.ToString();
tree.Nodes.Add(node);
}
this.Controls.Add(tree);
}
When I run, VS pop-up an error message saying "Microsoft JScript runtime error: Object required", then a line of javascript is highlighted. The highlighted line is "if(!_1.firstChild)", where the "_1" is null (pls see file attached). The same error pop-up regardless of whether I assign the ID for tree or not.
What I do just is just a simple page load. I found same posts from the forum that implement the similar code, but I get this error. I'm using IE7. Any clue? TIA
waifoong