2012年9月18日
摘要: NPOI2可以对excle2003和excle2007进行导入导出的操作 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Web; 5 6 using System.IO; 阅读全文
posted @ 2012-09-18 17:49 itprobie-菜鸟程序员 阅读(20057) 评论(0) 推荐(2)
摘要: 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Web; 5 6 using System.IO; 7 8 /// 9 /// 文件下载有以下四种方式, 大文件下载的处理方法:将文件分块下载。 10 /// Response.OutputStream.Write 11 /// Response.TransmitFile 12 /// Response.WriteFile 13 /// Response.BinaryWrite 14 /// ... 阅读全文
posted @ 2012-09-18 17:45 itprobie-菜鸟程序员 阅读(1821) 评论(0) 推荐(0)
摘要: 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Web; 5 6 using System.IO; 7 using System.Web.UI.WebControls; 8 9 public class FileUploadHelper10 {11 private HttpPostedFile postedFile;12 13 public FileUploadHelper(HttpPostedFile postedFile)14 {15... 阅读全文
posted @ 2012-09-18 17:36 itprobie-菜鸟程序员 阅读(335) 评论(0) 推荐(0)
摘要: 将对象序列化成xml字符串,并将xml字符串反序列化成对象 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 6 using System.IO; 7 using System.Xml; 8 using System.Xml.Serialization; 9 10 namespace XYL.TechnicalSupervision.Utilities11 {12 public class DotNetXmlSerilize13 {14... 阅读全文
posted @ 2012-09-18 17:16 itprobie-菜鸟程序员 阅读(319) 评论(0) 推荐(0)
摘要: treeview的TreeNodeCheckChanged事件,当checkbox的选择状态改变时,在客户端回发的到服务器的时候会触发该事件。但事实是选择checkbox时没有响应该事情,那是因为treeview控件没有给checkbox添加客户端回发事件。所以问题的症结在于,没有回发事件,解决方案当然是给checkbox添加回发事件。1>在服务器端给treeview添加客户端的onclick事件1 protected void Page_Load(object sender, EventArgs e)2 {3 treeView.Attributes.Add("onclick& 阅读全文
posted @ 2012-09-18 17:06 itprobie-菜鸟程序员 阅读(1805) 评论(0) 推荐(0)