2011年12月9日

摘要: public void CreateExcel(DataTable source, string fileName, HttpContext context) { StringBuilder excelDoc = new StringBuilder(); const string startExcelXML = @"<xml version> <Workbook " + "xmlns=\"urn:schemas-microsoft-com:office:spreadsheet\" " + " xmlns:o 阅读全文

posted @ 2011-12-09 14:51 Leon0812 阅读(195) 评论(0) 推荐(0) 编辑

摘要: public void CreateCSV(DataTable dt, string fileName, HttpContext context) { StringBuilder csvDoc = new StringBuilder(); string strTitle = string.Empty; for (int i = 0; i <= dt.Columns.Count - 1; i++) { strTitle += "\"" + dt.Columns[i]... 阅读全文

posted @ 2011-12-09 14:51 Leon0812 阅读(216) 评论(0) 推荐(0) 编辑


2011年9月1日

摘要: (function($){ $.fn.ChangeStyle = function(options,msg){ var opts = $.extend({},$.fn.ChangeStyle.defaults, options); this.css("background",opts.background); this.css("color",opts.color); //private method ... 阅读全文

posted @ 2011-09-01 11:22 Leon0812 阅读(207) 评论(0) 推荐(0) 编辑

摘要: XML:<?xml version="1.0" encoding="utf-8"?><mail> <smtp from="yyc_163@163.com" pwd="ixafhp" fromName="Ricoh" cc="youcai@chinasoftware.eu" needPWD="1"> <network host="smtp.163.com" port="25" 阅读全文

posted @ 2011-09-01 09:38 Leon0812 阅读(224) 评论(0) 推荐(0) 编辑

摘要: using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;using System.IO;using System.Xml.Linq;using System.Web.UI.HtmlControls;public partial class ResourceManage: System.Web.UI.Page { private string[] otherCultures = ne... 阅读全文

posted @ 2011-09-01 09:33 Leon0812 阅读(180) 评论(0) 推荐(0) 编辑


2011年8月31日

摘要: string excelFile = Server.MapPath("~/service/data.xlsx"); //string strConn = @"Provider=Microsoft.Jet.OLEDB.4.0;Data Source= " + excelFile + ";Extended Properties=Excel 8.0;"; string strConn = @"Provider=Microsoft.Ace.OleDb.12.0;Data Source= " + excelFile + &q 阅读全文

posted @ 2011-08-31 15:45 Leon0812 阅读(253) 评论(0) 推荐(0) 编辑


2010年12月18日

摘要: !DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"htmlhead titleUntitled/title /headbodycenterinput name="btn" id="btn" value="English" type="button" onclick="javascript:document.getElementById('f').src='http://maps.google.com/?q=flowershops+in+UK'"/input name="btn" id=" 阅读全文

posted @ 2010-12-18 03:21 Leon0812 阅读(344) 评论(0) 推荐(0) 编辑


2010年11月22日

摘要: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> <title&g... 阅读全文

posted @ 2010-11-22 20:30 Leon0812 阅读(241) 评论(0) 推荐(0) 编辑


2010年4月18日

摘要: <script>var tgs = new Array( 'div','td','tr');var szs = new Array( 'xx-small','x-small','small','medium','large','x-large','xx-large' );var startSz = 2;function ts( trgt,inc ) {if (!document.get... 阅读全文

posted @ 2010-04-18 13:44 Leon0812 阅读(222) 评论(0) 推荐(0) 编辑


2010年4月7日

摘要: <div contentEditable="true" style=" border-bottom-color:Blue; border-style: solid; border-width: 1px; border-color: inherit; font-size: 83%; overflow: auto; width: 604px; font-family: arial, sans-... 阅读全文

posted @ 2010-04-07 23:14 Leon0812 阅读(558) 评论(1) 推荐(0) 编辑


Copyright © 2024 Leon0812
Powered by .NET 8.0 on Kubernetes