随笔分类 -  asp.net

摘要:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Data;using System.IO;using NPOI;using NPOI.SS.UserModel;using NPOI.HSSF.UserModel;using Gnc.Org.Entity;using NPOI.SS.Util;using System.Threading;using System.Globalization;using NPOI.HSSF.Util;using System 阅读全文
posted @ 2013-11-08 16:24 ^_^哈哈 阅读(678) 评论(0) 推荐(0)
摘要:System.Runtime.InteropServices.COMExceptionRetrieving the COM class factory for component with CLSID {000209FF-0000-0000-C000-000000000046} failed due to the following error: 800703fa Illegal operation attempted on a registry key that has been marked for deletion. (Exception from HRESULT: 0x800703FA 阅读全文
posted @ 2013-10-16 11:05 ^_^哈哈 阅读(715) 评论(0) 推荐(0)
摘要:1 阅读全文
posted @ 2013-10-12 10:03 ^_^哈哈 阅读(5181) 评论(0) 推荐(0)
摘要:/// /// 将一组对象导出成EXCEL /// /// 要导出对象的类型 /// 一组对象 /// 导出后的文件名 /// 列名信息 public static void ExportExcel(List objList, string FileName, Dictionary columnInfo) { if (columnInfo.Count == 0) { return; } if (objList.Count... 阅读全文
posted @ 2013-09-10 14:13 ^_^哈哈 阅读(1718) 评论(0) 推荐(1)
摘要:当选项中的两个item,value值相同时,不会触发SelectedIndexChanged事件http://www.cnblogs.com/jeff377/archive/2008/10/30/1323312.html 阅读全文
posted @ 2013-07-25 16:16 ^_^哈哈 阅读(189) 评论(0) 推荐(0)
摘要:具有树结构的表datatable生成树结构的json字符串,前台生成树1.实现效果2.代码 public partial class WebForm1 : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } [WebMethod] public static string GetJsonTree() { DataTable dtLevels = GetData(); ... 阅读全文
posted @ 2013-07-08 10:18 ^_^哈哈 阅读(888) 评论(0) 推荐(0)
摘要:原帖地址http://blog.sina.com.cn/s/blog_7016da1e0100wr2p.htmlVS2003已经装好,可以开始做了。第一步,做好Xml模板,这个直接在Word中另存为Xml格式就可,这个Xml可用Word打开,也要用记事本打开。第二步,用Word打开Xml模板,在表格中要填数据的地方做好标记,如图所示第三步,读取Xml模板stringmodePath = HttpContext.Current.Server.MapPath("同业对标专家库.xml");XmlDocument xmlDoc = new XmlDocument();xmlDoc 阅读全文
posted @ 2012-12-10 14:55 ^_^哈哈 阅读(1044) 评论(0) 推荐(0)