摘要: 今天在CSDN发帖问了个问题,很简单。http://topic.csdn.net/u/20110325/14/8c47273b-51ec-4938-92c8-a2d865beb3bc.html在网页后台使用Console.Write 内容会被输出到哪?哇塞解决问题的没几个,反而说些其他的占了大多数。唉.. 不说了进入正题。---------------------------------------今天一个朋友(以前是干java)问我,.net 怎么能输出调试(Debug.Write),而不去设置断点什么的。貌似java有这功能。我想了想 突然想起以前的一个项目的类库中有这样的代码(这代码是. 阅读全文
posted @ 2011-03-25 18:55 马老虎 阅读(2362) 评论(14) 推荐(0) 编辑
摘要: 首先建议使用Excel 第三方插件。下文介绍的是Excel COM组件的问题。------- 经常使用到Excel COM组件导出EXCEL数据。但是很多人头疼的是如何释放Excel资源。网上有好多这方面的资料。但是方法就是那么几种。1,强制垃圾回收。 使用GC.Collect();强制垃圾回收。但是效果不明显,有时候根本不起作用。2,杀掉Excel进程。 执行完EXCEL然后杀掉进程,虽然这100%能杀掉,但是用户需要权限,还得修改服务器的设置(BS网站很难实现)。再说容易误删,这样做是有效果,但是很危险。----------------------------上面俩种方法都不适宜使用,那怎 阅读全文
posted @ 2010-12-24 17:05 马老虎 阅读(2695) 评论(4) 推荐(1) 编辑
摘要: 今天重新装了系统,mysqlconnector 使用了官网的最新版本(6.8.3)。启动项目出现标题中的错误。原因大家谷歌。解决方法,使用低版本的connector。我使用的是 6.5.6 解决。下载地址:http://115.com/lb/5lberij8ftca 阅读全文
posted @ 2014-04-15 15:14 马老虎 阅读(650) 评论(0) 推荐(0) 编辑
摘要: Y7LAY2UP 未激活/可使用 — 2014-04-01 — WXGJTJDF 未激活/可使用 — 2014-04-01 — QM7VSMLZ 未激活/可使用 — 2014-04-01 — XMNH4I8L 未激活/可使用 — 2014-04-01 — 0L9UDB... 阅读全文
posted @ 2014-04-02 14:01 马老虎 阅读(736) 评论(3) 推荐(1) 编辑
摘要: var oTable = $('#div_list').dataTable({ "oLanguage": {//语言国际化 "sUrl": "/Admin/corescript/jquery.dataTable.cn.txt" }, ... 阅读全文
posted @ 2014-03-28 11:13 马老虎 阅读(4380) 评论(0) 推荐(0) 编辑
摘要: 这个问题纠结了2小时。最后发现在最新版的uploadify 没有onComplete 事件了。我去。。。。详情看官网:http://www.uploadify.com/documentation/ Event可以使用 onUploadSuccess 事件代替。唉。。。。。。。。。 阅读全文
posted @ 2014-02-26 18:00 马老虎 阅读(3455) 评论(0) 推荐(0) 编辑
摘要: 官方原始链接:http://download.microsoft.com/download/7/A/C/7AC27F37-FDFE-4991-B18A-962E26E31BD1/VS2013_RTM_PRO_CHS.iso快盘分享链接:http://kuai.xunlei.com/d/XqtODQIkKQDYjXRSee7 阅读全文
posted @ 2013-11-02 13:33 马老虎 阅读(6105) 评论(0) 推荐(0) 编辑
摘要: private void ExportDataToWord(string content) { StringBuilder sbMain = new StringBuilder(); #region 头部分 sbMain.Append(""); sbMain.Append(""); sbMain.Append(""); sbMain.Append(" "); sbMain.Append(" "); sbMain.Append(" "); sbMain.Appen... 阅读全文
posted @ 2013-07-30 15:10 马老虎 阅读(2689) 评论(2) 推荐(0) 编辑
摘要: http://support.microsoft.com/kb/310263/zh-cn 阅读全文
posted @ 2013-07-25 14:41 马老虎 阅读(196) 评论(0) 推荐(0) 编辑
摘要: public struct Struct_INTERNET_PROXY_INFO { public int dwAccessType; public IntPtr proxy; public IntPtr proxyBypass; }; [DllImport("wininet.dll", SetLastError = true)] private static extern bool InternetSetOption(IntPtr hInternet, in... 阅读全文
posted @ 2013-07-25 14:31 马老虎 阅读(311) 评论(0) 推荐(0) 编辑
摘要: using System.Net.Mail;public static bool SendMail(string messTo,string messBody) { MailMessage mess = new MailMessage(); mess.From = new MailAddress("mmm306306@163.com", "报警系统");//发件人 mess.Subject = "报警系统";//主题 mess.IsBodyHtml = true;//允许HTML ... 阅读全文
posted @ 2013-07-25 14:27 马老虎 阅读(450) 评论(0) 推荐(0) 编辑
摘要: /* * 2009年8月6日13:19:20 * 调用:this.label1.Text = DXHanZiToPinYin.DXHanZiToPinYin.Convert(this.textBox1.Text); */using System;using System.Collections.Generic;using System.Text;using System.Text.RegularExpressions;using System.Web;namespace DXHanZiToPinYin{ public class DXHanZiToPinYin { #... 阅读全文
posted @ 2013-07-25 14:21 马老虎 阅读(2078) 评论(0) 推荐(0) 编辑