js操作Microsoft.Web.UI.WebControls的Treeview问题
请问如何使用js为treeview的一个结点添加字节点
... ...
newnode = objTreeView.createTreeNode();
newnode.setAttribute( "text ", "111 ");
curnode = objTreeView.getTreeNode(objTreeView.selectedNodeIndex);
curnode.add(newnode);
newnode = objTreeView.createTreeNode();
newnode.setAttribute( "text ", "222 ");
curnode = objTreeView.getTreeNode(objTreeView.selectedNodeIndex);
curnode.add(newnode);
... ...
<ie:TreeView id= "TreeView1 " runat= "server ">
</ie:TreeView>
<input type= "button " value= "test " onclick= "test(1) " />
222这个结点如何建立成111的子结点?
------解决方案--------------------http://blog.csdn.net/Eray/archive/2007/04/23/1575302.aspx