tan
站在牛顿头上吃苹果的程序员
摘要: 在GridView中我们经常要利用复选按钮实现全选的功能,下面针对这一解决方案做以总结第一种:利用客户端控件实现JS:<script type="text/javascript">function checkAll(){ var checklist=document.getElementsByTagName("input"); for(var i=0;i<checklist.le... 阅读全文
posted @ 2010-03-05 22:54 tanliang 阅读(520) 评论(5) 推荐(0) 编辑
摘要: 在部分项目中我们用到GridView控件会涉及到列中数据统计,下面针对GridView中列的汇总做以说明;1. 开始我们以northwind数据库为例从数据库中读取数据到页面 String connString = "server=.;user=sa;pwd=;database=northwind"; //汇总价格double totalPrice = 0; protected void Page... 阅读全文
posted @ 2010-03-05 22:52 tanliang 阅读(604) 评论(0) 推荐(0) 编辑