代码改变世界

c# 文件/文件夹操作

2016-09-14 09:33 by newbirth, 267 阅读, 0 推荐, 收藏,
摘要:using System; using System.IO; namespace HuaTong.General.Utility { /// /// 文件夹/文件操作 /// public static class DirFileHelper { /// /// 获取所有子目录列表,包含嵌套的子目录 ... 阅读全文

c# DataTable 数据集处理DataTableHandler

2016-09-14 09:32 by newbirth, 1004 阅读, 0 推荐, 收藏,
摘要:using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Linq; using System.Reflection; using System.Text; using System.Collections; using System.I... 阅读全文

c# DataTable 导出csv文件

2016-09-14 09:30 by newbirth, 3441 阅读, 0 推荐, 收藏,
摘要:using System;using System.Data;using System.Configuration;using System.Collections.Generic;using System.Web;using System.Web.Security;using System.Web 阅读全文

C# 缓存操作类

2016-09-14 09:29 by newbirth, 4832 阅读, 0 推荐, 收藏,
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Web; using System.Web.Caching; namespace HuaTong.General.Utility { /// /// 缓存操作,默认缓存1分钟 ... 阅读全文

常用字符串加密解密方法

2016-09-13 11:24 by newbirth, 8024 阅读, 1 推荐, 收藏,
摘要:using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Security.Cryptography; using System.Text; using System.Text.RegularExpressions; using System.Web.Secur... 阅读全文

使用存储过程生成数据库文档

2016-09-12 10:42 by newbirth, 399 阅读, 0 推荐, 收藏,
摘要:USE [MeiDongPay] GO /****** Object: StoredProcedure [dbo].[RenderTableDocument] Script Date: 09/12/2016 10:39:52 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO -- ======================... 阅读全文

c# excel转换为DataTable

2016-08-11 16:56 by newbirth, 8189 阅读, 0 推荐, 收藏,
摘要:System.Data.DataTable GetDataFromExcelByCom(bool hasTitle, string fileName) { //OpenFileDialog openFile = new OpenFileDialog(); //openFile.Filter = "Excel(*.xlsx)|*.x... 阅读全文

c# DataTable行转列

2016-08-11 16:55 by newbirth, 2993 阅读, 0 推荐, 收藏,
摘要:/// /// datatable行转列 /// /// 来源datatable /// 行转列结束的datatable private System.Data.DataTable ConvertDataTable(System.Data.DataTable dt) { v... 阅读全文

c# DataTable导出为excel

2016-08-11 16:55 by newbirth, 5250 阅读, 0 推荐, 收藏,
摘要:/// /// 将DataTable导出为Excel文件(.xls) /// /// 要导出的DataTable public static void ExportToExcel(System.Data.DataTable dt) { if (dt == null) return; ... 阅读全文

js获取来源网址

2016-06-03 11:15 by newbirth, 847 阅读, 0 推荐, 收藏,
摘要:举例: 1. a.html文件内容如下: <a href="b.html">浏览b.html </a> 2. b.html文件中的内容如下: <body> <script type="text/javascript"> document.write(document.referrer); </scr 阅读全文
上一页 1 ··· 3 4 5 6 7 8 下一页