上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 16 下一页
摘要: <script type="text/javascript"> function fixHead() { var grid = document.getElementById("<%=GridView1.ClientID%>"); var grid2 = grid.cloneNode(true) for (i = grid2.rows.length - 1; i > 0; i--) grid2.deleteRow(i) ... 阅读全文
posted @ 2013-01-19 17:16 yellowshorts 阅读(145) 评论(0) 推荐(0) 编辑
摘要: //GridView控件行数据绑定事件 protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) //如果是数据行 { //已设置公告内容列的宽度是200 //为公告内容列添加word-break属性 e.Row.Cells[2].Style.Add("word-break", "bre... 阅读全文
posted @ 2013-01-19 17:10 yellowshorts 阅读(235) 评论(0) 推荐(0) 编辑
摘要: //GridView行数据绑定事件 protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) //如果是数据行 { string content = e.Row.Cells[2].Text; //取指定列值 e.Row.Cells[2].Text = SubStr(content, 10);//调用自定义... 阅读全文
posted @ 2013-01-19 16:59 yellowshorts 阅读(191) 评论(0) 推荐(0) 编辑
摘要: protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) //如果是数据行 { GridView grid = sender as GridView; //取当前操作的GridView int rowNo = e.Row.RowIndex+1; //根据行索引加1取行号 ... 阅读全文
posted @ 2013-01-19 16:56 yellowshorts 阅读(110) 评论(0) 推荐(0) 编辑
摘要: <script language="javascript" type="text/javascript">// <!CDATA[function btnSelect_onclick(id,name) { alert("用户ID:"+id+" 用户名:"+name) ; return false ;}// ]]></script> //GridView控件的行数据绑定事件 protected void GridView1_RowDataBound(object sender, Gr 阅读全文
posted @ 2013-01-19 16:52 yellowshorts 阅读(124) 评论(0) 推荐(0) 编辑
摘要: //GridView控件的行数据绑定事件 protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) //如果是数据行 { //为当前行添加鼠标移入事件 e.Row.Attributes.Add("onmouseover", "c=this.style.backgroundColor;this.style.backgr... 阅读全文
posted @ 2013-01-19 16:50 yellowshorts 阅读(158) 评论(0) 推荐(0) 编辑
摘要: //GridView行数据绑定事件 protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) //如果是数据行 { GridView grid = sender as GridView; //取当前操作的GridView //为GridView数据行的"删除方法1"按钮添加删除确认对话框 ((L... 阅读全文
posted @ 2013-01-19 16:46 yellowshorts 阅读(797) 评论(0) 推荐(0) 编辑
摘要: private string Var; //声明变量 private string PersistenceVar//声明经过持久化处理的变量 { get { if (ViewState["PersistenceVar"] == null) { return ""; } return ViewState["PersistenceVar"].ToString(); } set ... 阅读全文
posted @ 2013-01-19 16:38 yellowshorts 阅读(226) 评论(0) 推荐(0) 编辑
摘要: if (!IsPostBack) //如果是第一次加载页面 { if (Session["TreeNod"] == null) //如果不存在菜单树缓存对象 { BuildTreeview(); //调用生成菜单树 if (tvNavigation.Nodes.Count > 0) { Session["TreeNod"] = tvNavigation.Nodes[0]; //将... 阅读全文
posted @ 2013-01-19 16:35 yellowshorts 阅读(230) 评论(0) 推荐(0) 编辑
摘要: RegisterClientScriptBlock: //判断是否已经注册clientScript键的客户端脚本 if (!ClientScript.IsClientScriptBlockRegistered("clientScript")) { string scriptString = "<script language=\"javascript\" type=\"text/javascript\">" + "function doClick()" + "{" 阅读全文
posted @ 2013-01-19 16:28 yellowshorts 阅读(134) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 16 下一页