http://hotmy.com/cms/blogs/more.asp?name=chrischen&id=129 treeview样式。
如何避免treeview控件闪烁刷新(引自“江雨的代码”)
关于类似的TreeView展开不提交,点击才提交。。。此乃hgknight方法也。。。。
方法如下
可以将autopostback设置成false;
在body里添加 <body οnlοad="initTree()">
然后在PageLoad里写:
string strTreeName = "TreeView1";
string strRef = Page.GetPostBackEventReference(TreeView1);
string strScript = "<script language=/"JavaScript/"> /n" + "<!-- /n" + " function initTree() { /n" +" " + strTreeName + ".onSelectedIndexChange = function() { /n" + "if (event.oldTreeNodeIndex !=
event.newTreeNodeIndex) /n" + "this.queueEvent('onselectedindexchange', event.oldTreeNodeInd