上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 20 下一页
摘要: 1、页面中添加绿色字体代码2、类文件中的方法/// /// 导出excel按钮 /// /// /// protected void lbToExcel_Click(object sender, EventArgs e) {//注:gvData为Gridview控件的名称 gvData.Al... 阅读全文
posted @ 2014-12-02 15:57 觉缘168 阅读(140) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections;using System.Data;using System.Data.Common;using System.Configuration;namespace Lee.Data{ public class DataAcces... 阅读全文
posted @ 2014-12-02 15:56 觉缘168 阅读(194) 评论(0) 推荐(0) 编辑
摘要: 一:DateTime.ToString格式化日期二:代码using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using Sys... 阅读全文
posted @ 2014-12-02 15:55 觉缘168 阅读(441) 评论(0) 推荐(0) 编辑
摘要: 一:DateTime.IsLeapYear 方法判断是否是闰年二:代码using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;us... 阅读全文
posted @ 2014-12-02 15:54 觉缘168 阅读(408) 评论(0) 推荐(0) 编辑
摘要: /// /// DataTable转List通用类【实体转换辅助类】/// public class ModelConvertHelper where T : new(){public static IList ConvertToModel(DataTable dt){// 定义集合IList ts... 阅读全文
posted @ 2014-12-02 15:53 觉缘168 阅读(380) 评论(0) 推荐(0) 编辑
摘要: /// /// DataTable行转列/// /// 需要转换的表/// 转换表表头对应旧表字段(小写)/// public static DataTable DataTableRowtoCon(DataTable dtable, string head){DataTable dt = new D... 阅读全文
posted @ 2014-12-02 15:52 觉缘168 阅读(209) 评论(0) 推荐(0) 编辑
摘要: DataSet ds = new DataSet(); DataTable dt = new DataTable("OrderList"); dt.Columns.Add(new DataColumn("ID", typeof(string))); dt.Columns.Add(new Da... 阅读全文
posted @ 2014-12-02 15:51 觉缘168 阅读(136) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Drawing;using System.Collections;using System.ComponentModel;using System.Windows.Forms;using System.Data;using System.Data.... 阅读全文
posted @ 2014-12-02 15:50 觉缘168 阅读(195) 评论(0) 推荐(0) 编辑
摘要: DataGird导出EXCEL的几个方法(WebControl) using System;using System.Data;using System.Text;using System.Web;using System.Web.UI;using System.Diagnostics;using ... 阅读全文
posted @ 2014-12-02 15:49 觉缘168 阅读(235) 评论(0) 推荐(0) 编辑
摘要: 封装处理下,以后项目用到可以直接使用,比较简单。1.首先看封装好的类using System;using System.Data;using System.IO;using System.Text;using CSharpUtilHelpV2;using StringUtilHelp;namespa... 阅读全文
posted @ 2014-12-02 15:47 觉缘168 阅读(959) 评论(0) 推荐(0) 编辑
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 20 下一页