摘要: 我们经常要在一个表中将数据迁移到另一个表,当然,用的方法十分多了。在.net 2.0中,提供了一个sqlbulkcopy类,也可以实现如下的操作,下面简单介绍下。比如一个表如下 CREATE TABLE Person3 ( PersonID int IDENTITY(1,1) PRIMARY KEY, Name nvarchar(200), Email nvarchar(200), Picture... 阅读全文
posted @ 2009-03-19 17:03 玉菩提 阅读(211) 评论(1) 推荐(0) 编辑
摘要: 1.加入收藏夹   ------------------------------------------------------------   <a href=# onClick=window.external.addFavorite('http://www.xiayuesong.com','xia') target=_self title=ww20... 阅读全文
posted @ 2009-03-18 13:00 玉菩提 阅读(197) 评论(0) 推荐(0) 编辑
摘要: asp.net 2.0 中引入的GridView控件当其数据源为空时(GridView.DataSource=null)不能显示出表头。  解决:  方法一:采用其EmptyTemplate来实现,模版中写一个静态的table;  如果你的表头只是html的文本,没有任何控件。你可以在表头显示出来的时候,拷贝表头部分的html,然后放到EmptyDataTemplate里面。  缺点: 麻烦,每个... 阅读全文
posted @ 2009-01-12 10:57 玉菩提 阅读(1619) 评论(2) 推荐(0) 编辑
摘要: <style> .Freezing { position:relative ; table-layout:fixed; top:expression(this.offsetParent.scrollTop); z-index: 10; } .Freezing th{text-overflow:ellipsis;overflow:hidden;white-space: nowrap... 阅读全文
posted @ 2009-01-09 18:47 玉菩提 阅读(439) 评论(0) 推荐(0) 编辑
摘要: public static string ConvertPY(string SourceString) { if (SourceString == null) return null; Encoding ed = Encoding.GetEncoding("GB2312"); i... 阅读全文
posted @ 2009-01-09 18:44 玉菩提 阅读(1256) 评论(5) 推荐(0) 编辑
摘要: string SelectCommand = string.Format("select top 1 Id, PiaoJuPiaoHao, DaoZhanDianMian, HuoWuPinMing, JianShu, ZhongLiang, TiJi, ZhuangTai, FaZhanDianMian, CheChi from FaZhanPiaoJuBiao");//定义数据样式 ... 阅读全文
posted @ 2009-01-04 11:18 玉菩提 阅读(321) 评论(0) 推荐(0) 编辑
摘要: 读:TextBox1.Text=File.ReadAllText("d:/b.txt",Encoding.Default); 写:File.WriteAllText("d:/a.txt", TextBox1.Text, Encoding.Default); 追加:File.AppendAllText("d:/a.txt", TextBox1.Text, Encoding.Default); ... 阅读全文
posted @ 2008-11-30 19:02 玉菩提 阅读(146) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Data;using System.Data.SqlClient; using Model;using DBUtility; namespace DAL{ public static partial class SmallClassService { ... 阅读全文
posted @ 2008-11-29 18:32 玉菩提 阅读(326) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Configuration; using System.Data; using System.Data.SqlClient; using System.Collections; namespace DBUtility { /// /// The SqlHelper class is intended to encapsula... 阅读全文
posted @ 2008-11-29 17:51 玉菩提 阅读(1742) 评论(8) 推荐(0) 编辑
摘要: 泡在程序的海洋里 那里是我的彼岸 我注定被定义成静态 但即使这样我还是反射出很多灵活的方法 动态又能怎样 别忘了 你所谓的动态,所谓的交互 是我的支持 阅读全文
posted @ 2008-11-28 22:11 玉菩提 阅读(110) 评论(0) 推荐(0) 编辑