2006年8月25日

GridView排序加上下箭头(2)

摘要: GridView排序加上下箭头上面的方法很不爽,自己从新做了一个,在我以前的代码基础之上修改的.这种方法才是我要的真正效果.特公布代码如下:前端页面代码没变,CS代码. Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 1using System; ... 阅读全文

posted @ 2006-08-25 16:36 ★金★ 阅读(1550) 评论(1) 推荐(0) 编辑

根据老外的方法,GridVew实现多列排序.

摘要: 代碼如下: Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 1Using directives#region Using directives 2 3using System; 4using System.Collections.Generi... 阅读全文

posted @ 2006-08-25 15:44 ★金★ 阅读(455) 评论(0) 推荐(0) 编辑

GridView排序加上下箭头

摘要: ASPX: ... 阅读全文

posted @ 2006-08-25 15:33 ★金★ 阅读(1058) 评论(0) 推荐(0) 编辑

2006年8月21日

SQL連接遠端數據庫方法

摘要: 1.exec sp_dropserver 'srv','droplogins'exec sp_addlinkedserver 'srv','','SQLOLEDB','172.16.20.11'exec sp_addlinkedsrvlogin 'srv','false',null,'sjsqladmin','sql3125'exec sp_serveroption 'srv','rpc out'... 阅读全文

posted @ 2006-08-21 15:36 ★金★ 阅读(297) 评论(0) 推荐(0) 编辑

2006年8月14日

A4和B5纸张大小是按什么标准划分的?

摘要: 依照长度和宽度不同分类,A4规格:21*29.7厘米 B4的规格:25*35.4,B5的规格:18.2*25.7 纸张的规格是指纸张制成后,经过修整切边,裁成一定的尺寸。过去是以多少"开"(例如8开或16开等)来表示纸张的大小,现在我采用国际标准,规定以A0、A1、A2、B1、B2......等标记来表示纸张的幅面规格。标准规定纸张的幅宽(以X表示)和长度(以Y表示)的比例关系为X:Y=1:n 。... 阅读全文

posted @ 2006-08-14 10:03 ★金★ 阅读(17214) 评论(0) 推荐(0) 编辑

2006年8月2日

根据用户名/密码Copy局域网中指定文件夹里的文件

摘要: 代码如下: public static void OpenDirectory(string str_Directory,string to_Directory, string str_UserName, string str_Password) { string str_LogoOn = "net use " + str_Directory + ... 阅读全文

posted @ 2006-08-02 08:49 ★金★ 阅读(676) 评论(0) 推荐(0) 编辑

系统启动后,自动启动软件方法.

摘要: 可以通过修改注册表来实现代码如下: private void InitializeRegis() { string fileName = Application.StartupPath; RegistryKey rkey = Registry.LocalMachine; RegistryKey rkey... 阅读全文

posted @ 2006-08-02 08:43 ★金★ 阅读(416) 评论(3) 推荐(0) 编辑

2006年7月15日

@好处多多

摘要: @好处多多1.文件路径 strFileFrom="\\172.16.20.12\e$\CCL_Development\ProExcelTest\Engg_Index_DFS\Report" 这种形式的在C#中会报错. 解决方法: strFileFrom="\\\\172.16.20.12\\\e$\\\CCL_Development\\\ProExcelTest\\\Engg_Index_DFS\... 阅读全文

posted @ 2006-07-15 08:56 ★金★ 阅读(114) 评论(0) 推荐(0) 编辑

2006年7月5日

vs2005&sql2005

摘要: SQL2005新增varchar(max)解决了大的数据参数传递问题(对我来说).VS2005中Atals配合使用,无刷新. 阅读全文

posted @ 2006-07-05 16:09 ★金★ 阅读(149) 评论(0) 推荐(0) 编辑

Excel数据汇出

摘要: 1.EXEC master..xp_cmdshell 'bcp DataTest.dbo.AirPerformance out D:\WinForm\ProjExcel\Files\Engg_Index_DFS\Report\airperformancetol.xls -c -q -S "WUSF\DAT" -U"sa" -P"055122"'2.EXEC master..xp_cmdshell ... 阅读全文

posted @ 2006-07-05 13:59 ★金★ 阅读(243) 评论(0) 推荐(0) 编辑

导航