I tried to reproduce the error.
So finally I have the following code at ASPX file (FlyTreeView + Button):
And the following code in code-behind ASPX.CS file (same as yours but C#):
protected void flyTreeView1_PopulateNodes(object sender, NineRays.WebControls.FlyTreeNodeEventArgs e)
{
FlyTreeNode node1 = new FlyTreeNode(\"Child 1\");
FlyTreeNode node2 = new FlyTreeNode(\"Child 2\");
node2.PopulateNodesOnDemand = true;
e.Node.ChildNodes.Add(node1);
e.Node.ChildNodes.Add(node2);
}
And no problems with this here. Clicking, posting back, etc. No errors.
I checked it with the latest 4.3.1 version.
What exact control version do you use?
Do you have some specific settings for your web app? May be some filters, caching, custom request/response encodings or something like this?
This is very important to us, since you're not the only who experience this problem, and we still cannot duplicate the issue.
Thanks in advance.