ASP.NET
liuleiyu121520
(硬是说我懒)
展开
-
C#生成PDF文档,读取TXT文件内容
using System.IO;using iTextSharp.text;using iTextSharp.text.pdf; //需要在项目里引用ICSharpCode.SharpZipLib.dll和itextsharp.dllpublic string TxtFilePath;public string SavePdfPath;//保存PDF的路径 #regi转载 2011-12-19 17:23:32 · 628 阅读 · 0 评论 -
计算时间差
public static string CalculationTime(DateTime Starttime) { string timeString = ""; DateTime EndTime = DateTime.Now; if (EndTime < Starttime)原创 2012-02-10 14:51:13 · 312 阅读 · 0 评论 -
文件下载(PDF;WORD....)
using System.Data;using System.Linq;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.HtmlControls;using System.Web.UI.WebControls;using System.Web.UI.WebContro转载 2012-08-01 17:22:37 · 497 阅读 · 0 评论 -
C#序列化JSON
using System.Text;using System.IO;using System.Runtime.Serialization.Json;namespace UserCenter.Ajax{public class JsonSerializer{ // public string GetJson(T obj) {转载 2012-12-21 11:07:34 · 344 阅读 · 0 评论 -
用string来分割 split
//用string来分割string[] arr = { }; arr= System.Text.RegularExpressions.Regex.Split(input, "\r\n", System.Text.RegularExpressions.RegexOptions.IgnoreCase);转载 2013-01-21 15:33:49 · 342 阅读 · 0 评论