摘要: 1. 用C#等写的CheckBox需要回发到服务端执行,而用JavaScript可以在直接客户端实现,效率高些 2. DataGrid中的代码主要片段: //头模板代码 //myDataGrid即为我的DataGrid的名称,使用时自行更换。 //项模板代码 3.在当页加入脚本: 4.当使用者选择好后台代码取得某列CheckBox的值: for (int i = 0;i <this.DataGrid.Items.Count;i++) { bool blnIfSelect = ((CheckBox)this.DataGrid.Items[i].FindContro... 阅读全文
posted @ 2006-07-09 20:44 mib23 阅读(513) 评论(0) 推荐(0) 编辑
摘要: Javascript怎么实现DataGrid或DataList等容器上面选择单选框RadioButton。下面已DataGrid为例子,在模板列上加一个RadioButton:radio1 myDataGrid即为DataGrid的名称,目的是为了如果页面上还有别的RadioButton,可以互不影响,单选myDataGrid中的RadioButton只对本容器中的RadioButton有影响。Javascript脚本为PS:这个是.net 1.1的,2.0以后的需要把这句"obj.name.substr(0,elem[i].name.indexOf(':')) == 阅读全文
posted @ 2006-07-09 20:42 mib23 阅读(446) 评论(0) 推荐(0) 编辑
摘要: ASP.NET程序打包的时候如何把TreeView一起打包?在web.config加入以下节点 注意:configSections一定要放在第一个子节最前面。 复制默认网站的webctrl_client/1_0/里面的文件到虚拟目录/treepath/下,运行程序,树型界面出现了,只是前面的加... 阅读全文
posted @ 2006-07-09 20:28 mib23 阅读(259) 评论(1) 推荐(0) 编辑