2012年5月24日

IMG 显示出错时不显示红叉

摘要: <img src='../ImageUpload/ShowPhoto.aspx?id=<%=EGID %>' onerror="this.style.display='none'" /> 阅读全文

posted @ 2012-05-24 16:50 zhuhai 阅读(203) 评论(0) 推荐(0)

DataTable行转列

摘要: 数据库中查询后的结果为: col1 col2 col3 col4 AAAA AA 扬州 10.50 AAAA AA 北京 150.00 AAAA BB 南京 20.00 BBBB QQ 北京 50.00 BBBB PP 上海 45.00 BBBB PP 南京 100.00 怎么才能转换成下面这种格式: 扬州 南京 北京 上海 AAAA AA 10.50 150.00 AAAA BB 20.00 BBBB QQ 50.00 BBBB PP 100.00 45.00方法一:DataTable rs1=GetTable( "Select col1,col2 From TabName Gro 阅读全文

posted @ 2012-05-24 16:47 zhuhai 阅读(224) 评论(0) 推荐(0)

JS实现CheckBoxList的全选与反选[支持IE,FireFox]

摘要: <input id="checkAll" onclick="selectAll()" type="checkbox" /> <script type="text/javascript"> function selectAll() { for(var i=0;i<document.getElementById("CheckBoxList1").getElementsByTagName("input").length;i++) { var IsChe 阅读全文

posted @ 2012-05-24 13:14 zhuhai 阅读(195) 评论(0) 推荐(0)

Jquery获取CheckBoxList的值(兼容火狐,附js方法)RadioButtonList同样适用

摘要: //给CheckBoxList添加alt属性 foreach (ListItem li in this.cblNeedTestRoom.Items) { li.Attributes.Add("alt", li.Value); }functionGetCheckBoxListValue(){varvaluelist="";//保存checkbox选中值//遍历name以cblNeedTestRoom开头的checkbox$("input[name^='cblNeedTestRoom']").each(function() 阅读全文

posted @ 2012-05-24 11:22 zhuhai 阅读(314) 评论(0) 推荐(0)

导航

我的百度空间