DIV套DIV,通过脚本控制是否隐藏该部分DIV
解决方案 »
- winform子窗口访问主窗口的串口
- 如何锁定textBox1的内容
- asp.net中解析
- C#winform怎样连接到远程服务器?
- 查询DataGrid某列数据
- 求助,为什么取不到gridview模版列中dropdownlist和RadioButtonList的选值?
- 下载不能的问题
- 怎样在winform或wpf Windows程序中启动另一个应用程序?
- 北京某软件公司招.net 及GIS程序员、数据库人员(北京工作)
- 是不是csdn运行有点问题了?我接不到分呢?
- 在V C#中如何读取DXF格式文件?
- 字符串向其它类型转换,string--->DateTime,String--->int32,string-->Decimal
在frame页里处理数据,然后返回给主页。
//Treeview提交问题
string strTreeName = "TrView_CS";
string strRef = Page.GetPostBackEventReference(TrView_CS);
string strScript = "<script language=\"JavaScript\"> \n"
+ "<!-- \n" + " function initTree() { \n"
+ " " + strTreeName + ".onSelectedIndexChange = function() { \n"
+ "if (event.oldTreeNodeIndex !=event.newTreeNodeIndex) \n"
+ "this.queueEvent('onselectedindexchange', event.oldTreeNodeIndex + ',' + event.newTreeNodeIndex); \n"
+ "window.setTimeout('" + strRef.Replace("'","\\'") + "', 0, 'JavaScript'); \n" + "} \n" + "} \n"
+ "// --> \n" + "</script>";
Page.RegisterClientScriptBlock("InitTree",strScript );TrView_CS是相应的treeview的名字
2 在aspx页面中加上
<body onload="initTree()"......>
3 treeview的autopost设为false;