程序员的部落

导航

2009年4月2日 #

ASP.NET对Excel单元格进行操作并且插入数据

摘要: protected void Button3_Click(object sender, EventArgs e) { try { DataSet ds = new BLL.TrafficLine().GetAllList(); System.Data.Da... 阅读全文

posted @ 2009-04-02 10:22 程序员的部落 阅读(396) 评论(0) 推荐(0) 编辑

checkbox gridview指定数据并保存到table中

摘要: DataTable dt = new DataTable(); DataColumn dc = new DataColumn("列1", typeof(System.String)); dt.Columns.Add(dc); dc = new DataColumn("列2", typeof(System.String)); dt.Columns.Add(dc); dc = new Dat... 阅读全文

posted @ 2009-04-02 10:19 程序员的部落 阅读(173) 评论(0) 推荐(0) 编辑

字符串判断是否是数字

摘要: #region 是否是数字字符串 /// /// 是否数字字符串(是返回true,否返回false) /// /// 输入字符串 /// 如果是数字则返回true,否返回false public static boo... 阅读全文

posted @ 2009-04-02 10:19 程序员的部落 阅读(158) 评论(0) 推荐(0) 编辑

改变已经绑定的数据Gridview

摘要: protected void GvSelect_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) { ... 阅读全文

posted @ 2009-04-02 10:18 程序员的部落 阅读(131) 评论(0) 推荐(0) 编辑

分页对 首页,上一页,下一页,尾页按钮的处理

摘要: #region 分页对 首页,上一页,下一页,尾页按钮的处理 /// /// 分页对 首页,上一页,下一页,尾页按钮的处理 /// /// 搜索的关键字命名 /// 要搜索的关键字 /// 当前页的数字 /// 每页要显示的数目 /// 记录总数 private void BindPager(string flag, string keyword, int currentPage, int pag... 阅读全文

posted @ 2009-04-02 10:17 程序员的部落 阅读(718) 评论(0) 推荐(0) 编辑

AspNetPager第三方控件分页代码

摘要: private void BindData() { BLL.TrafficLine _TrafficLine = new Traffic.BLL.TrafficLine(); DataSet ds =... 阅读全文

posted @ 2009-04-02 10:17 程序员的部落 阅读(162) 评论(0) 推荐(0) 编辑

代码实现ASP.NET数据库的备份和还原

摘要: //数据库备份 protected void btnBackup_Click(object sender, EventArgs e) { string bakname = "cc"; ... 阅读全文

posted @ 2009-04-02 10:16 程序员的部落 阅读(233) 评论(0) 推荐(0) 编辑

DataSet导出为Excel

摘要: protected void Button1_Click(object sender, EventArgs e) { DataSet ds = new BLL.TrafficLine().GetAllList(); DataTable dt = ds.Tables[0]; string url = "D:\\"... 阅读全文

posted @ 2009-04-02 10:15 程序员的部落 阅读(180) 评论(0) 推荐(0) 编辑

Excel数据导入到MsSQL数据库中

摘要: protected void Button3_Click(object sender, EventArgs e) { string conn = "Provider = Microsoft.Jet.OLEDB.4.0; Data Source ='D:\\ccd.xls';Extended Properties='Excel 8.0;HDR... 阅读全文

posted @ 2009-04-02 10:15 程序员的部落 阅读(364) 评论(0) 推荐(0) 编辑

打印报表数据

摘要: 无标题页 ... 阅读全文

posted @ 2009-04-02 10:13 程序员的部落 阅读(173) 评论(0) 推荐(0) 编辑