| 发表于:2007-04-13 09:46:24 楼主 |
我在datagrid中使用javascript(作树形视图): <script type= "text/javascript " > <!--- tree.addnode(new treenode( <%# databinder.eval(container.dataitem, "orgcode ", "{0} ") %> , "folder ", <%# databinder.eval(container.dataitem, "preorgcode ", "{0} ") %> , ' <%# databinder.eval(container.dataitem, "name ", "{0} ") %> ', "# ", " ")); ---> </script> 能正常使用,值传递也正常,但是我想将> "folder "用变量替换成: <%# databinder.eval(container.dataitem, "class2 ", "{0} ") %> ,这个值总是传不过去;设断点调试呢tree.addnode传递的值又是一样的。 你说怪不怪?! |
|
|
|
|