COMPUTER_LZY

要输就输给追求,要嫁就嫁给幸福

导航

上一页 1 2 3 4 5 6 7 8 ··· 11 下一页

2012年4月9日 #

ASP.NET AutoPostBack 弹出新页面

摘要: 在<head></head>之间加入 <base target="_self"/>即可 阅读全文

posted @ 2012-04-09 15:35 CANYOUNG 阅读(135) 评论(0) 推荐(1) 编辑

2012年3月29日 #

ASP.Net 刷新页面

摘要: 第一:private void Button1_Click( object sender, System.EventArgs e ){ Response.Redirect( Request.Url.ToString( ) );}第二:private void Button2_Click( object sender, System.EventArgs e ){ Response.Write( " <script language=javascript>window.location.href=document.URL; </script>" );}第 阅读全文

posted @ 2012-03-29 18:36 CANYOUNG 阅读(184) 评论(0) 推荐(1) 编辑

2012年3月26日 #

ASP.NET 各种弹出

摘要: <ahref="javascript:showModalDialog('EquipmentTypeAdd.aspx?isAdd=1');window.location.reload()"style="text-decoration:none;"><divclass="on_out"onmousemove="this.className='on_mov'"onmouseout="this.className='on_out'"> 阅读全文

posted @ 2012-03-26 08:24 CANYOUNG 阅读(146) 评论(0) 推荐(1) 编辑

2012年3月20日 #

GridView 的各种操作

摘要: 在RowDataBound事件中加入如下代码protectedvoidgv_projectDocumentView_RowDataBound(objectsender,GridViewRowEventArgse){if(e.Row.RowType==DataControlRowType.DataRow){//鼠标经过时,行背景色变e.Row.Attributes.Add("onmouseover","this.style.backgroundColor='#00A9FF'");//鼠标移出时,行背景色变e.Row.Attributes.A 阅读全文

posted @ 2012-03-20 09:28 CANYOUNG 阅读(145) 评论(0) 推荐(1) 编辑

2012年3月14日 #

正则表达式限制TextBox的输入

摘要: 许多时候我们在制作表单时需要限制文本框输入内容的类型,下面我们用正则表达式限制文本框只能输入数字、小数点、英文字母、汉字等各类代码。 1.文本框只能输入数字代码(小数点也不能输入) <input onkeyup="this.value=this.value.replace(/\D/g,'')" onafterpaste="this.value=this.value.replace(/\D/g,'')"> 2.只能输入数字,能输小数点. <input onkeyup="if(isNaN(value 阅读全文

posted @ 2012-03-14 09:33 CANYOUNG 阅读(477) 评论(0) 推荐(0) 编辑

2012年3月10日 #

在线压缩/解压缩文件或文件夹

摘要: /Files/computer-lzy/AspNetOnlineZIP2.0_51aspx.rar 阅读全文

posted @ 2012-03-10 14:22 CANYOUNG 阅读(2040) 评论(0) 推荐(0) 编辑

2012年3月9日 #

gridview /TemplateField /RowCommand/ 当前行index /Insert/update/delete

摘要: HTML:<%@PageLanguage="C#"AutoEventWireup="true"CodeBehind="GridView.aspx.cs"Inherits="RGY_WebApp.GridView"%><!DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><ht 阅读全文

posted @ 2012-03-09 09:52 CANYOUNG 阅读(457) 评论(0) 推荐(0) 编辑

2012年3月8日 #

merge cells with equal values in a GridView

摘要: publicstaticvoidMergeRows(GridViewgridView){for(introwIndex=gridView.Rows.Count-2;rowIndex>=0;rowIndex--){GridViewRowrow=gridView.Rows[rowIndex];GridViewRowpreviousRow=gridView.Rows[rowIndex+1];for(intcellIndex=0;cellIndex<row.Cells.Count;cellIndex++){if(row.Cells[cellIndex].Text==previousRow. 阅读全文

posted @ 2012-03-08 14:17 CANYOUNG 阅读(176) 评论(0) 推荐(0) 编辑

2012年2月28日 #

Cannot bind to the new display member

摘要: 代码:cb_abc.DataSource = oper.getDataSet(); cb_abc.DisplayMember = "name"; cb_abc.ValueMember = "value";cb_abc.SelectedIndex = 0;在执行上述代码时,ComboBox绑定报错 异常:Cannot bind to the new display member原因: 将一个DataSet对象赋给了一个combobox数据源,combobox在DataSet中找不到名为name或value的数据列。解决办法:将DataSet改为DataTa 阅读全文

posted @ 2012-02-28 16:06 CANYOUNG 阅读(743) 评论(0) 推荐(0) 编辑

2011年12月29日 #

未能加载文件或程序集“Office, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c”(转)

摘要: 分析器错误信息: 未能加载文件或程序集“Office, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c”或它的某一个依赖项。系统找不到指定的文件。源错误: 行 42: <add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/> 行 43: <add assembly="System.DirectoryServices, Ver 阅读全文

posted @ 2011-12-29 10:32 CANYOUNG 阅读(4698) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 7 8 ··· 11 下一页