想在客户端根据treenode写一个事件,缺不知怎么得到treenode。找了半天,终于在msdn找到
<script >
var nodeindex = document.all.treeview1.selectedNodeIndex;
var myNode = treeview1.getTreeNode(nodeindex);
myNode.getAttribute(“text“);
</script>
reference http://msdn.microsoft.com/library/default.asp?url=/workshop/webcontrols/overview/treeview.asp