摘要: <sessionState mode="[Off|InProc|StateServer|SQLServer|Custom]" timeout="number of minutes" cookieName="session identifier cookie name" cookieless= "[true|false|AutoDetect|UseCookies|UseUri|UseDeviceProfile]" regenerateExpiredSessionId="[True|False 阅读全文
posted @ 2011-01-04 09:12 张宏宇 阅读(434) 评论(0) 推荐(0) 编辑
摘要: create table #tmp (name varchar(50),rows int,reserved varchar(50),data varchar(50),index_size varchar(50),unused varchar(50));insert into #tmp (name,rows,reserved,data,index_size,unused) exec sp_msforeachTable "sp_spaceused '?'"select *,--sum(convert(decimal,replace(reserved,' 阅读全文
posted @ 2012-02-16 09:22 张宏宇 阅读(223) 评论(0) 推荐(0) 编辑
摘要: JS: document.onkeydown=setCode;function setCode(){ if (event.keyCode==40) { var srcElem = document.activeElement var testval = srcElem.name; if(testval=="TextAdmissionDiagnosis") { document.getElementById("lsBoxInfo").focus(); } } if(event.keyCode==13) { event.returnValue = false 阅读全文
posted @ 2011-09-09 10:36 张宏宇 阅读(424) 评论(0) 推荐(0) 编辑
摘要: var top = $("#TextAdmissionDiagnosis").position().top + $("#TextAdmissionDiagnosis").height(); $("#divPropertyInfo").css({ top: top, left: $("#TextAdmissionDiagnosis").position().left }); $("#divPropertyInfo").slideToggle(500); $("#divPropertyIn 阅读全文
posted @ 2011-09-09 09:59 张宏宇 阅读(268) 评论(0) 推荐(0) 编辑
摘要: <td class="right_chaxun_bai " align="left" width="17%" style="height: 24px;position:relative"><div id="Layer1" style="position:absolute; width:16%; z-index:0;left:0px;top:0px;margin-top:0px;"> <asp:DropDownList ID="TextH 阅读全文
posted @ 2011-09-09 09:47 张宏宇 阅读(1697) 评论(0) 推荐(0) 编辑
摘要: [AjaxMethod(HttpSessionStateRequirement.ReadWrite)] // 读写Session:或[AjaxMethod(HttpSessionStateRequirement.Read)] // 只读Session: 【服务器端】[AjaxPro.AjaxMethod(AjaxPro.HttpSessionStateRequirement.ReadWrite)]public string getTest(){Hashtable hash = (Hashtable)HttpContext.Current.Session["UserName" 阅读全文
posted @ 2011-09-08 09:18 张宏宇 阅读(930) 评论(0) 推荐(0) 编辑
摘要: declare @procName varchar(500)declare cur cursorfor select [name] from sys.objects where type = 'p'open curfetch next from cur into @procNamewhile @@fetch_status = 0beginif @procName <> 'DeleteAllProcedures'exec('drop procedure ' + @procName)fetch next from cur into @pr 阅读全文
posted @ 2011-08-16 15:00 张宏宇 阅读(213) 评论(0) 推荐(0) 编辑
摘要: HTML中禁止自动完成和禁用输入法收藏 IE提供了一个自动完成功能可以记忆我们的输入内容(如登录帐号等),方便下一次快速地录入类似资料.这确实是一个非常友好的功能, 在操作时只需用鼠标双击文本框或输入前几个字符, 系统会自动列出以前的录入历史供你选择, 大大提高录入速度及准确性. 相信大多数IE的用户都启用了这项功能. 然而做为网站开发者来说, 并不希望什么资料都记忆在用户的电脑上(如银行帐号和其它重要的帐号及密码), 但是我们又不能要求用户禁用自动完成的功能. 幸好IE5.0后为 INPUT type=password, INPUT type=text, FORM 等控件加入了一个 AUTO 阅读全文
posted @ 2011-07-31 13:35 张宏宇 阅读(1876) 评论(0) 推荐(0) 编辑
摘要: ASP.NET清除页面缓存 (1) Response.Buffer = true; Response.ExpiresAbsolute = System.DateTime.Now.AddSeconds(-1); Response.Expires = 0; Response.CacheControl = "no-cache"; Response.AddHeader("Pragma", "No-Cache"); (2) HTML方法 <HEAD> <META HTTP-EQUIV="Pragma" CO 阅读全文
posted @ 2011-06-21 14:42 张宏宇 阅读(1930) 评论(0) 推荐(0) 编辑
摘要: 下表列出了由 SqlBulkCopy 类型公开的成员。 公共构造函数 名称 说明 SqlBulkCopy 已重载。初始化 SqlBulkCopy 类的新实例。页首 公共属性 名称 说明 BatchSize 每一批次中的行数。在每一批次结束时,将该批次中的行发送到服务器。 BulkCopyTimeout 超时之前操作完成所允许的秒数。 ColumnMappings 返回 SqlBulkCopyColumnMapping 项的集合。列映射定义数据源中的列和目标表中的列之间的关系。 DestinationTableName 服务器上目标表的名称。 NotifyAfter 定义在生成通知事件之... 阅读全文
posted @ 2011-06-08 09:29 张宏宇 阅读(270) 评论(0) 推荐(0) 编辑
摘要: 的数据作为分区重新分配给现有的已分区表,或者将分区由一个已分区表切换到另一个已分区表,则目标分区必须存在,并且必须为空。 如果重新分配一个分区的数据以组成单个表,则必须已经创建了目标表,并且该表必须为空。源表或分区以及目标表或分区必须在同一个文件组中。对应的索引或索引分区也必须在同一个文件组中。切换分区还有许多其他限制。有关详细信息,请参阅使用分区切换高效传输数据。table和target_table不能相同。target_table可以是由多个部分构成的标识符。source_partition_number_expression和target_partition_number_express 阅读全文
posted @ 2011-04-12 08:44 张宏宇 阅读(236) 评论(0) 推荐(0) 编辑