Loading

11 2008 档案

摘要:Code Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->// Initializes a new instance of the StringBuilder class // and appends the given value if suppli... 阅读全文
posted @ 2008-11-30 20:27 .net's 阅读(524) 评论(1) 推荐(0)
摘要:临时表 可以创建本地临时表和全局临时表。本地临时表仅在当前会话中可见,而全局临时表在所有会话中都可见。临时表不能分区。 本地临时表的名称前面有一个数字符号 (#table_name),而全局临时表的名称前面有两个数字符号 (##table_name)。 SQL 语句使用 CREATE TABLE 语句中为 table_name 指定的值引用临时表,例如: 复制代码 CREATE TA... 阅读全文
posted @ 2008-11-29 11:14 .net's 阅读(705) 评论(0) 推荐(0)
摘要:读取作为输入提供的 XML 文本,然后使用 MSXML 分析器 (Msxmlsql.dll) 对其进行分析,并提供分析后的文档供使用。分析后的文档对 XML 文档中的各节点(元素、属性、文本和注释等)的树状表示形式。 sp_xml_preparedocument 返回一个句柄,可用于访问 XML 文档的新创建的内部表示形式。该句柄在会话的持续时间内有效,或者通过执行 sp_xml_removedo... 阅读全文
posted @ 2008-11-28 22:34 .net's 阅读(639) 评论(0) 推荐(0)
摘要:OPENXML 通过 XML 文档提供行集视图。由于 OPENXML 是行集提供程序,因此可在会出现行集提供程序(如表、视图或 OPENROWSET 函数)的 Transact-SQL 语句中使用 OPENXML。 Transact-SQL 语法约定 语法 OPENXML( idoc int [ in] , rowpattern nvarchar [ in ] , [ f... 阅读全文
posted @ 2008-11-28 22:29 .net's 阅读(634) 评论(0) 推荐(0)
摘要:Code Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->String.fromCharCode(72,69,76,76,79); //HELLO String.fromCharCode(num1,num2,,numx); 阅读全文
posted @ 2008-11-28 14:40 .net's 阅读(643) 评论(0) 推荐(0)
摘要:http://qsh.eu/en/Default.aspx 阅读全文
posted @ 2008-11-27 08:08 .net's 阅读(502) 评论(0) 推荐(0)
摘要:sql中有聚合函数,group by的时候,聚合函数都是取该分组中符合的那个数据。 如下图所示,在asp分组中,ad中最大为v,em中最大为13,都是取该分组中的最大值, 并不是一定是属于同一行。 所以,根据某个字段(如最大值)去取的某一行的数据时,不能有2个以上的聚合函数一起用。 除非,想获得的数据可以不是同一行的。 阅读全文
posted @ 2008-11-25 22:38 .net's 阅读(891) 评论(0) 推荐(0)
摘要:因隐藏字段不支持focus()方法,故需排除掉 Code Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 阅读全文
posted @ 2008-11-22 11:54 .net's 阅读(397) 评论(0) 推荐(0)
摘要:Introduction: The article "ASP.Net 2.0: Export GridView to Excel" received a very good response from our user community. Some of the excellent tips collected from the user feedback have been included... 阅读全文
posted @ 2008-11-22 10:01 .net's 阅读(531) 评论(0) 推荐(0)
摘要:Introduction: In this article, we will see how to Export an ASP.Net 2.0 GridView to Excel. The focus of the article is the Export to Excel functionality - the Gridview and it's data binding are only... 阅读全文
posted @ 2008-11-21 22:18 .net's 阅读(1019) 评论(0) 推荐(0)
摘要:Code Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->class Program { static void Main(string[] args) { OperateAccess()... 阅读全文
posted @ 2008-11-20 12:03 .net's 阅读(802) 评论(3) 推荐(0)
摘要:对于1个单引号,则转义该单引号 对于1个反斜杠跟1个单引号,则不管它。 对于2个及以上的反斜杠加一个单引号,则分别对每个反斜杠和单引号都进行转义,即 使反斜杠数目保持不变, 并转义单引号。 Code Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->... 阅读全文
posted @ 2008-11-19 21:43 .net's 阅读(1544) 评论(0) 推荐(0)
摘要:GridView export to excel 格式参考 Code Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->mso-number-format:"0" NO Decimals mso-number-format:"0\.000" 3 D... 阅读全文
posted @ 2008-11-19 15:32 .net's 阅读(2521) 评论(3) 推荐(0)
摘要:Code Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->private void GridViewToExcel() { HttpContext.Current.Response.Clear(); HttpCo... 阅读全文
posted @ 2008-11-18 20:31 .net's 阅读(411) 评论(0) 推荐(0)
摘要:反向引用,指把匹配出来的组引用到表达式本身其它地方,比如,在匹配HTML的标记时,我们匹配出一个<a>,我们要把匹配出来的a引用出来,用来找到</a>,这个时候就要用到反向引用。 语法 a、反向引用编号的组,语法为\number b、反向引用命名的组,语法为\k<name> 举例 a、匹配成对的HTML标签 @"<(?<tag>[^\s>]+)[^>]*... 阅读全文
posted @ 2008-11-16 21:29 .net's 阅读(470) 评论(0) 推荐(0)
摘要:前言 Regular Expressions(正则表达式,以下用RE称呼)对小弟来说一直都是神密的地带,看到一些网络上的大大,简单用RE就决解了某些文字的问题,小弟便兴起了学一学RE的想法,但小弟天生就比较懒一些,总希望看有没有些快速学习的方式,于是小弟又请出Google大神,藉由祂的神力,小弟在网络上找到了Jim Hollenhorst先生的文章,经过了阅读,小弟觉得真是不错,所以就做个小心... 阅读全文
posted @ 2008-11-16 21:17 .net's 阅读(464) 评论(0) 推荐(0)
摘要:Code Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> Bad Words Example Enter some text below including "bad... 阅读全文
posted @ 2008-11-16 17:46 .net's 阅读(920) 评论(0) 推荐(0)
摘要:Code Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> Trim Example Enter some text containing leading and ... 阅读全文
posted @ 2008-11-16 16:50 .net's 阅读(675) 评论(0) 推荐(0)
摘要:Code Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->/* * 将回车换行分开比较好 * update date:2009-01-01 * */ /// /// 回车 /// ... 阅读全文
posted @ 2008-11-16 14:57 .net's 阅读(876) 评论(3) 推荐(0)
摘要:有些命令是在调试下才可用,有些则在编写程序时可用。 用alias可以列出所有命令 >alias Visual Studio 命令和开关 Visual Studio 命令允许从键盘与集成开发环境 (IDE) 直接进行交互。IDE 内的许多对话框、窗口和菜单命令都有命令行等效项,可以将其键入“命令”窗口、即时窗口或“查找/命令”框中,以显示一个对话框或执行一个命令。 Visual Stu... 阅读全文
posted @ 2008-11-14 23:44 .net's 阅读(1108) 评论(0) 推荐(0)
摘要:在调试时,即时窗口(Immediate Window)非常有用。 在调试时,调出即时窗口 visual studio 2005 :Ctrl+Alt+I 或则 Ctr+D,I visual studio 2008 : Ctrl+Alt+I visual studio 2003 : Ctrl+Alt+I 阅读全文
posted @ 2008-11-14 23:21 .net's 阅读(1977) 评论(0) 推荐(0)
摘要:在asp.net页面中,当有验证控件,而且想在验证控件验证通过之后, 在弹出一个确认对话框,提示是否继续。 当在button按钮上添加客户端的onclick="return confirm('Are you sure to continue?')"时,验证控件的验证就会失效。 因为验证控件也是添加客户端的onclick事件。 ------------------------------------... 阅读全文
posted @ 2008-11-14 21:12 .net's 阅读(978) 评论(0) 推荐(0)
摘要:亚健康是一种临界状态,处于亚健康状态的人,虽然没有明确的疾病,但却出现精神活力和适应能力的下降,如果这种状态不能得到及时的纠正,非常容易引起心身疾病。包括:心理障碍、胃肠道疾病、高血压、冠心病、癌症、性功能下降,倦怠、注意力不集中、心情烦躁、失眠、消化功能不好、食欲不振、腹胀、心慌、胸闷、便秘、腹泻、感觉很疲惫,甚至有欲死的感觉。然而体格检查并无器官上的问题,所以主要是功能性的问题。 处于亚健康状... 阅读全文
posted @ 2008-11-13 20:48 .net's 阅读(487) 评论(0) 推荐(0)
摘要:asp.net1.1的情况 一个页面上有一个服务器控件的Button,为什么在Page_Load里加上了 Button1.Attributes["onclick"]="javascript:return window.confirm('请确定输入无误?');"; 却弹不出确认对话框。 因为是在msn上交流的,我给他测试了一下,语句没有一点问题,还以为是.net framework出了问题。不... 阅读全文
posted @ 2008-11-13 18:53 .net's 阅读(526) 评论(0) 推荐(0)
摘要:特殊字符 Code Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->(1)\xn 匹配ASCII码值等于n的字符。n必须是两位的十六进制整数。例如,“\x41”匹配字符“A”。用这种方式可以表示所有非打印字符。 (2)\n 此处的n是一个一位的八... 阅读全文
posted @ 2008-11-11 21:45 .net's 阅读(546) 评论(0) 推荐(0)
摘要:即用构造函数定义对象的所有飞函数属性,用原型方式定义对象的函数属性(方法)。 Code Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 阅读全文
posted @ 2008-11-09 14:06 .net's 阅读(383) 评论(0) 推荐(0)
摘要:由于ECMAScript中的函数不能重载,不过可以使用arguments对象避开这种限制。 在函数代码中,使用特殊对象arguments, 开发者无需明确指出参数名,就能访问它们。例如, 在函数sayHi()中,第一个参数是message。用arguments[0]也可以访问这个值, 即第一个参数的值(第一个参数位于位置0,第二个参数位于1,依此类推)。 因此,无需明确命名参数,就可以重写函数... 阅读全文
posted @ 2008-11-09 10:11 .net's 阅读(685) 评论(0) 推荐(0)
摘要:在使用 CustomValidator 控件时,必须在任何服务器端处理期间检查 System.Web.UI.Page.IsValid 属性以确定是否通过了所有验证检查。IsValid 属性返回该页上所有验证程序控件的累积状态。此属性用于确保任何服务器端处理都已通过所有验证检查。 Code Code highlighting produced by Actipro CodeHighlighter... 阅读全文
posted @ 2008-11-09 09:48 .net's 阅读(529) 评论(0) 推荐(0)
摘要:void运算符对任何值都返回undefined。该运算符通常用于避免输出不应该输出的值,例如, 从HTML的元素调用JavaScript函数时。 要正确做到这一点,函数不能返回有效值,否则浏览器将清空页面,只显示函数的结果。 Code Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeH... 阅读全文
posted @ 2008-11-08 22:03 .net's 阅读(392) 评论(0) 推荐(0)
摘要:Code Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 阅读全文
posted @ 2008-11-08 00:00 .net's 阅读(341) 评论(0) 推荐(0)
摘要:1,让ie允许调试脚本,具体步骤如下: 打开ie->工具菜单->inter选项->高级选项卡->去掉“禁止脚本调试"选项 2,在javascript脚本中设置断点,F5运行程序,将自动运行到断点处暂停 第2种直接在html页面也可以调试,在javascript代码中加上一句debugger; Code Code highlighting produced by Actipro ... 阅读全文
posted @ 2008-11-07 23:26 .net's 阅读(707) 评论(0) 推荐(0)