2012年9月7日

SQL“常用查询语句”、“常用日期查询方式”、“常用函数”整理

摘要: 最近用SQL处理数据比较多,这里整理了一些常用的SQL语句。 一、常用查询语句 1常用SQL法一:select*intobfromawhere1<>1法二:selecttop0*intobfroma2、说明:拷贝表(拷贝数据,源表名:a目标表名:b)(Access可用)insertintob(a,b,c)selectd,e,ffroma;3、说明:跨数据库之间表的拷贝(具体数据使用绝对路径)(Access可用)insertintob(a,b,c)selectd,e,ffromain‘具体数据库’where条件例子:..frombin'"&Server.Ma 阅读全文

posted @ 2012-09-07 17:17 [CC] 阅读(3575) 评论(2) 推荐(5) 编辑

2012年9月6日

Silverlight下“DataGrid”和“Pdf”导出

摘要: 首先,Silverlight下的“DataGrid”控件多少让人有些失望,它没有集成导出功能。而对于“PDF”的导出,一般是先将文件转化为“图片”格式,然后再按照“PDF”格式导出,可以采用“SilverPDF”组件。但是再这两者导出时,不可避免的都会遇到两种问题,第一“DataGrid”导出“... 阅读全文

posted @ 2012-09-06 18:30 [CC] 阅读(601) 评论(0) 推荐(0) 编辑

2012年7月23日

WCF方法“异步调用”的“同步问题”

摘要: 在“WCF”中服务方法的调用是“异步”的,而这些异步的方法的执行顺序有先有后,只要当一部分“异步通信”全部完成之后,才能进行下一步的操作,如何使异步通信同步起来?有两种方法,一种是异步用法逐步执行,一种是通过“标志变量”协调执行。不知您是否有其它建议? 1、顺序执行 方法1_Async ... 阅读全文

posted @ 2012-07-23 10:35 [CC] 阅读(456) 评论(2) 推荐(0) 编辑

遍历表,执行存储过程的方法

摘要: 1、使用“表变量” declare@Rowint,@Rowsint,@DANochar(23),@DATimedatetime,@LogTimedatetime,@MeterTypechar(4),@MeterNochar(20),@Qtydecimal(18,6)declare@ttable(Rowintidentity(1,1)notnull,DANochar(23)notnull,DATimedatetimenotnull,LogTimedatetimenotnull,MeterTypechar(4)notnull,MeterNochar(20)notnull,Qtydecimal(18 阅读全文

posted @ 2012-07-23 09:46 [CC] 阅读(329) 评论(0) 推荐(0) 编辑

2012年5月7日

取与指定时间最近的数据集

摘要: if object_id('[tabletest]') is not null drop table [tbl]create table [tabletest]([DATime] datetime,[DaWeight] varchar(5))insert [tabletest]select '2012-03-15 14:24:00.000','300Kg' union allselect '2012-03-15 14:25:00.000','400Kg'godeclare @datimenow DateTimese 阅读全文

posted @ 2012-05-07 08:26 [CC] 阅读(986) 评论(0) 推荐(0) 编辑

2012年4月29日

“JS”和“Aspx”之注册“JS脚本”、刷新页面、TreeNode下JS连接设置

摘要: 一、“JS函数”注册到“ASPX页面”,并在后台使用 string linkurl = "你的地址"; ClientScript.RegisterStartupScript(Page.GetType(), "script", "NowShow('"+linkurl+"')",true); 或者 Button1.Attributes["onclick"] = "return NowShow("+linkurl+");"; Button1.At 阅读全文

posted @ 2012-04-29 14:55 [CC] 阅读(1414) 评论(0) 推荐(1) 编辑

2012年4月26日

“NPOI” 实现“Excel”导入

摘要: “NPOI” 可以实现“Excel”文件的导出和导入。这里主要指office2003的“.XSL”文件,而不是office2007的“.XSLX”文件的导入,如果可以兼容office2007了话,还请指教。一、前台页面文件格式判断 function checkType() { //得到上传文件... 阅读全文

posted @ 2012-04-26 18:47 [CC] 阅读(854) 评论(2) 推荐(2) 编辑

2012年4月25日

Jquery实现“Iframe”页面切换

摘要: 一:Defualt.aspx页面下的“IFrame” <iframe id="BoardTitle" name="BoardTitle" style="height: 100%; visibility: inherit; width: 198; z-index: 2" scrolling="auto" frameborder="0" src="left.aspx"></iframe> <iframe id="mainFrame" 阅读全文

posted @ 2012-04-25 21:41 [CC] 阅读(3947) 评论(0) 推荐(2) 编辑

2012年4月15日

“Silverlight”中获取“HTML元素和参数”及JS交互

摘要: 1、获取HTTP连接中的参数http://localhost:5526/sl.aspx?user=root&password=rootHtmlPage.Document.QueryString取到的是一个字典IDictionarykey=user,value=rootkey=password,val... 阅读全文

posted @ 2012-04-15 16:43 [CC] 阅读(424) 评论(0) 推荐(1) 编辑

2012年3月16日

WeatherWebService

摘要: 好久没写过博客了,手有点生疏了。相信大家对“WeatherWebService”,通过引用"WebService"来获取各地的天气信息。在这里再次复习一下。 1、添加服务引用。 地址:http://www.webxml.com.cn/WebServices/WeatherWebServ... 阅读全文

posted @ 2012-03-16 21:21 [CC] 阅读(662) 评论(0) 推荐(0) 编辑

导航