资源预览内容
第1页 / 共3页
第2页 / 共3页
第3页 / 共3页
亲,该文档总共3页全部预览完了,如果喜欢就下载吧!
资源描述
效果图如下Aspx 代码Js 部分function CheckAll() /点击全部选择,选取本页面全部记录/因为在Form1中找不到chkSel的CheckBox,所以只好遍历整个documentvar cked = false;cked = document.getElementById(chkSelAll).checked;for (var i = 0; i Gridview 部分全选cs 部分protected void _Del_Click(object sender, EventArgs e)bool flag = true;for (int i = 0; i this.commentview.Rows.Count; i+)bool ischecked = (CheckBox)commentview.Rowsi.FindControl(chkSel).Checked;if (ischecked)string _comtitle = commentview.DataKeysi.Value.ToString();string sql = delete from comment where comtitle= + _comtitle + and username= + Sessionusername + ;comsql.DB.ExecuteNoReturn(sql);flag = false;if (flag)Page.ClientScript.RegisterStartupScript(this.GetType(), scriptKey, alert(提示信息没有选择数据);, true);else Response.Redirect(apply.aspx);bindcom();
收藏 下载该资源
网站客服QQ:2055934822
金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号