摘要:
WINFORMS中一个Button,一个ProgressBar,Button事件:btnTest_Click CODE: private delegate void dlgProgress(int iValue); private void SetValue(int iValue) { if (InvokeRequired) { dlgProgress objDlgProgress= new... 阅读全文
摘要:
declare @addressid intdeclare authors_cursor cursor for SELECT address.addressid FROM address open authors_cursorfetch next from authors_cursor into @addressidwhile @@fetch_status=0begin--T-SQLfetch n... 阅读全文
摘要:
System.Net.Mail是作为System.Web.Mail的替代来发送EMAIL.1) System.Net.Mail[代码]2) System.Web.Mail[代码] 阅读全文
摘要:
以前操作Excel的话,一般都会去用Microsoft.Jet.OLEDB.4.0引擎去读取的,但是,这样会有一个问题,就是如果office 2007的话,就出事情了,而且,Microsoft.Ace.OLEDB.12.0还可以访问正在打开的excel而Mricosoft.Jet.OLEDB.4.0则不可以,Microsoft.Ace.OLEDB.12.0安装文件:http://www.micro... 阅读全文
摘要:
项目中有个打印的功能,具体是要做到企业的详细信息条条框框的打印出来,刚开始想到的就直接window.print()了,但是这样做的话,默认情况下页眉页脚会出来,这样的客户体验会很不好。虽然有些情况是可以去设置使打印的时候不出现页眉页脚,但是这样会很麻烦,于是,就想到用Report的打印功能,但是,这样做的话,浏览器需要去加载一个ActiveX,也不是很好,相对来说,比之window.print()... 阅读全文
摘要:
C#中操作Excel的方法很多,这里通过Response输出流的方式导到浏览器端成excel文件。方法代码:public void ExportResult(DataSet ds,string excelName) { HttpContext.Current.Response.Clear(); HttpContext.Current.Response.Charset = ""; HttpConte... 阅读全文
摘要:
var asc = 1;function sortTable(tId,columnIndex){var oTable;if(typeof(tId)=="object"){ oTable = tId;}else{ oTable = document.getElementById(tId);}if(!oTable){ return false;}var emptyRows = 1;for(var i ... 阅读全文
摘要:
function CLASS_MSN_MESSAGE(id,width,height,caption,title,message,target,action){ this.id = id; this.title = title; this.caption= caption; this.message= message; this.target = target; this.action... 阅读全文
摘要:
var ClienName;function OnTreeNodeChecked(controlID,obj) { tree=obj;//取出TreeView在客户端的表示对象 ClienName=tree.id.substring(0,tree.id.indexOf(controlID));//取出TreeView在客户ID的前缀 var ele = event.srcElement; if... 阅读全文