2012年5月31日
摘要: 1,iframe触发事件,'BLESS_SHOW'为别一个Iframe的IDwindow.parent.frames['BLESS_SHOW'].location.reload() 阅读全文
posted @ 2012-05-31 10:59 风夜 阅读(220) 评论(0) 推荐(0) 编辑
  2012年2月14日
摘要: <script language="javascript" type="text/javascript"> function postBackByObject() { var o = window.event.srcElement; if (o.tagName == "INPUT" && o.type == "checkbox") //点击treeview的checkbox是触发 { var d = o.id; //获得当前checkbox的id; var e = d.replace(& 阅读全文
posted @ 2012-02-14 18:15 风夜 阅读(873) 评论(0) 推荐(0) 编辑
  2012年2月7日
摘要: for (int i = Repeater1.Items.Count - 1; i > 0; i--) { //txtName是需要合并列的列名 HtmlTableCell oCell_previous = Repeater1.Items[i - 1].FindControl("txtName") as HtmlTableCell; HtmlTableCell oCell = Repeater1.Items[i].FindControl("txtName") as HtmlTableCell; //hfName图片列的列名 HtmlTableCel 阅读全文
posted @ 2012-02-07 17:58 风夜 阅读(193) 评论(0) 推荐(0) 编辑
摘要: 前台:<%-- 用于显示隐藏列--%> <%switch (hdfComplete.Value) { case "": case "1": %> <%break; case "2": %> <td width="70" > 完成时间 </td> <%break; }%> 阅读全文
posted @ 2012-02-07 10:46 风夜 阅读(116) 评论(0) 推荐(0) 编辑
摘要: 前台:<asp:PlaceHolder ID="PHD_" runat="server"></asp:PlaceHolder><asp:Repeater ID="rptTest" runat="server"> <HeaderTemplate> <table style="width: 100%"> </HeaderTemplate> <ItemTemplate> <asp:PlaceHolder ID=& 阅读全文
posted @ 2012-02-07 10:32 风夜 阅读(590) 评论(0) 推荐(0) 编辑
  2011年11月7日
摘要: ASP.net后台自定义标签。前台:<div id="DIV_TableCell" runat="server" ></div>后台:Dataset DsOrg=获取集合。 //为当前先择的部门添加背景图片 foreach (DataRow DrOrg in DsOrg.Tables[0].Rows) { divHtml = "<a href='" + this.Page.Request.Path + "?lab=" + DrOrg["OrgID"].ToS 阅读全文
posted @ 2011-11-07 17:36 风夜 阅读(1396) 评论(0) 推荐(0) 编辑
  2011年9月19日
摘要: private DataTable UnitTable() { DataTable newtable = GetDtA().Clone(); object[] obj = new object[newtable.Columns.Count]; for (int i = 0; i < GetDtA().Rows.Count; i++) { GetDtA().Rows[i].ItemArray.CopyTo(obj, 0); newtable.Rows.Add(obj); } for (int i = 0; i < GetDtB().Rows.Count; i++) { GetDtB( 阅读全文
posted @ 2011-09-19 21:36 风夜 阅读(288) 评论(0) 推荐(0) 编辑
  2011年9月5日
摘要: 日历简用 阅读全文
posted @ 2011-09-05 23:23 风夜 阅读(143) 评论(0) 推荐(0) 编辑
摘要: 实用在多操用情况下,减少页面显示,对同一项工作选择性操作。 阅读全文
posted @ 2011-09-05 23:19 风夜 阅读(126) 评论(0) 推荐(0) 编辑
摘要: JS脚本前台与后台读取,该为后台实现。 阅读全文
posted @ 2011-09-05 23:09 风夜 阅读(149) 评论(0) 推荐(0) 编辑