.net 筆記

學習.net
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2007年9月14日

摘要: Create table T( id int, type varchar(10), value int) Go insert into T select 1,'A' ,10 union all select 1,'B' ,20 union all select 1,'C' ,30 union all select 2,'A' ,15 union all select 2,'B' ... 阅读全文

posted @ 2007-09-14 15:47 陳偉 阅读(148) 评论(0) 推荐(0)

2007年9月12日

摘要: --建立測試環境 create table T1(id int, type varchar(20)) insert into T1 select 1,'A' union all select 1,'B' union all select 1,'C' union all select 2,'A' union all select 2,'D' union all select 3,'B' ... 阅读全文

posted @ 2007-09-12 12:43 陳偉 阅读(121) 评论(0) 推荐(0)

2007年9月5日

摘要: 转自晓风残月) 经常需要在数据库与Execl之间互导数据。net时代,ADO.NET可以使用使用Microsoft.Jet.OleDb访问访问Excel,网上已经有很多类似的资源,最典型也是最简单的可能如下:(asp.net环境) // 连接字符串 string xlsPath = Server.MapPath("~/app_data/somefile.x... 阅读全文

posted @ 2007-09-05 19:26 陳偉 阅读(383) 评论(0) 推荐(0)

2007年8月28日

摘要: //改變底色 protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) { e.Row.Attributes.Add("onmo... 阅读全文

posted @ 2007-08-28 09:36 陳偉 阅读(140) 评论(0) 推荐(0)

2007年8月27日

摘要: 我根椐这个操作没有成功,不过还是把它贴在这里,各位可以参考一下! 本示例操作 主要实现 a. ReportViewer关联Report1.rdlc的简单呈现 b. 对带有报表参数的Report1.rdlc的呈现 c. 利用程式生成的DataSet 填充报表 d. 调用存储过程 生成DataSet 填充报表 ========== 简单的呈现 ========== 1. 打开VS2005,文件->... 阅读全文

posted @ 2007-08-27 16:01 陳偉 阅读(358) 评论(0) 推荐(0)