摘要:
1、页面中添加绿色字体代码2、类文件中的方法/// /// 导出excel按钮 /// /// /// protected void lbToExcel_Click(object sender, EventArgs e) {//注:gvData为Gridview控件的名称 gvData.Al... 阅读全文
摘要:
using System;using System.Collections;using System.Data;using System.Data.Common;using System.Configuration;namespace Lee.Data{ public class DataAcces... 阅读全文
摘要:
一:DateTime.ToString格式化日期二:代码using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using Sys... 阅读全文
摘要:
一:DateTime.IsLeapYear 方法判断是否是闰年二:代码using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;us... 阅读全文
摘要:
/// /// DataTable转List通用类【实体转换辅助类】/// public class ModelConvertHelper where T : new(){public static IList ConvertToModel(DataTable dt){// 定义集合IList ts... 阅读全文
摘要:
/// /// DataTable行转列/// /// 需要转换的表/// 转换表表头对应旧表字段(小写)/// public static DataTable DataTableRowtoCon(DataTable dtable, string head){DataTable dt = new D... 阅读全文
摘要:
DataSet ds = new DataSet(); DataTable dt = new DataTable("OrderList"); dt.Columns.Add(new DataColumn("ID", typeof(string))); dt.Columns.Add(new Da... 阅读全文
摘要:
using System;using System.Drawing;using System.Collections;using System.ComponentModel;using System.Windows.Forms;using System.Data;using System.Data.... 阅读全文
摘要:
DataGird导出EXCEL的几个方法(WebControl) using System;using System.Data;using System.Text;using System.Web;using System.Web.UI;using System.Diagnostics;using ... 阅读全文
摘要:
封装处理下,以后项目用到可以直接使用,比较简单。1.首先看封装好的类using System;using System.Data;using System.IO;using System.Text;using CSharpUtilHelpV2;using StringUtilHelp;namespa... 阅读全文