随笔分类 -  asp.net

asp.net
摘要://获取应用程序的当前工作目录。 String path1 = System.IO.Directory.GetCurrentDirectory();//获取程序的基目录。String path2 = System.AppDomain.CurrentDomain.BaseDirectory;//获取和... 阅读全文
posted @ 2016-01-11 15:09 注定likeyou 阅读(142) 评论(0) 推荐(0)
摘要:时间格式: 简化: 自动编号: 分页: protected void lbtnpritPage_Click(object sender, EventArgs e) { this.labPage.T... 阅读全文
posted @ 2015-09-10 08:45 注定likeyou 阅读(145) 评论(0) 推荐(0)
摘要:解中文乱码string str1 = "ÖлªÈËÃñ¹²ºÍ¹ú";//文字自己的编码Encoding ecSelf = Encoding.GetEncoding("Unicode");byte[] btArr = ecSelf.GetBytes(name);//需要转成了编码Encoding ... 阅读全文
posted @ 2015-09-02 10:07 注定likeyou 阅读(319) 评论(1) 推荐(0)
只有注册用户登录后才能阅读该文。
posted @ 2015-08-19 10:47 注定likeyou 阅读(1) 评论(0) 推荐(0)
摘要:正试图在os加载程序锁内执行托管代码。不要尝试在DllMain或映像初始化函数内运行托管代码说明.NET2.0中增加了42种非常强大的调试助手,MDA.Loaderlock 是其中之一。Loaderlock检测在一个拥有操作系统loader lock的线程上运行托管代码的情况。这样做有可能会引起死锁... 阅读全文
posted @ 2015-03-05 10:07 注定likeyou 阅读(580) 评论(0) 推荐(0)
摘要:using System.IO;using System.Reflection;using System.Xml; FileStream refs = new FileStream("url.xls", FileMode.Open, FileAccess.Read); byte[] infbytes = new byte[(int)refs.Length]; refs.Read(infbytes, 0, infbytes.Length); refs.Close();//将xls文件转换为byte 字节 url.xls读取路径FileStream Wr... 阅读全文
posted @ 2013-12-23 17:39 注定likeyou 阅读(401) 评论(0) 推荐(0)