随笔分类 - 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
阅读全文
摘要: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
阅读全文
摘要:/// /// 将一组对象导出成EXCEL /// /// 要导出对象的类型 /// 一组对象 /// 导出后的文件名 /// 列名信息 public static void ExportExcel(List objList, string FileName, Dictionary columnInfo) { if (columnInfo.Count == 0) { return; } if (objList.Count...
阅读全文
摘要:当选项中的两个item,value值相同时,不会触发SelectedIndexChanged事件http://www.cnblogs.com/jeff377/archive/2008/10/30/1323312.html
阅读全文
摘要:具有树结构的表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(); ...
阅读全文
摘要:原帖地址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
阅读全文
浙公网安备 33010602011771号