摘要: The bugIn Internet Explorer (IE) 6, 7 and 8 in 'Compatibility View' there is a bug when hiding content within a hidden container element. The content will remain visible, even though its 'display' property is 'none', as can be observed when the container is re-shown again. Tr
阅读全文
摘要: 创建一个JavaScript表单验证插件,可以说是一个繁琐的过程,涉及到初期设计、开发与测试等等环节。实际上一个优秀的程序员不仅是技术高手,也应该是善假于外物的。本文介绍了10个不错的JavaScript表单验证插件,使用它们完全可以节省你的时间!希望你喜欢。1.validate.jsValidate.js是一个非常不错的JavaScript表单验证库,源于CodeIgniter API。该库相当轻巧(不到1KB),不要求任何JavaScript框架,可以在所有主流浏览器中运行(包括IE 6)。2.Zebra FormZebra_Form是一个免费的PHP库,它能够很好地处理表单验证。你只需使
阅读全文
摘要: <script language="javascript" type="text/javascript"> function Client() { } Client.prototype.mobileClients = [ "midp", "240x320", "blackberry", "netfront", "nokia", "panasonic", "portalmmm", "sharp&q
阅读全文
摘要: function sort(photoes) { var temp, j; for (var i = 1; i < photoes.length; i++) { if (compare(photoes[i], photoes[i - 1]) == -1) { temp = photoes[i]; j = i - 1; do { photoes[j + 1] = photoes[j]; j--; } while (j > -1 && compare(temp, photoes[j]) == -1); photoes[j + 1] = temp; } //endif }
阅读全文
摘要: 我的vs 2008从安装上就有一个问题:没有web designer。打开一个aspx页面,没有designer视图,只有source视图;并且source视图也和一般文本编辑器一样,没有任何tag标记和辅助编辑功能。重装几次,搞了一个早上还是没有解决。然后试了一下Devenv /ResetSkipPkgs命令,居然就好了......查了一下Devenv /ResetSkipPkgs这个命令参数的说明:Clears all options to skip loading added to VSPackages by users wishing to avoid loading problem
阅读全文
摘要: We have been getting some questions regarding viewstate-related errors like “The viewstate is invalid for this page and might be corrupted”This error is usually caused by the asp worker pr...
阅读全文
摘要: 介绍: 在我解释cache管理机制时,首先让我阐明下一个观念:IE下面的数据管理。每个人都会用不同的方法去解决如何在IE在管理数据。有的会提到用状态管理,有的提到的cache管理,这里我比较喜欢cache管理,因为本人比较喜“cache”这个词。但是状态管理和cache管理这两个在概念和意义上是不同的,下面就让我们来讨论下两都在各个方面的不同之处。 虽然cache管理并不存...
阅读全文
摘要: 在Asp.net后台代码中要取得URL参数非常简单,用Request.QueryString["paramName"]就可以了。有时候我想在Javascript里面也能得到URL参数,可是查了一下没有在Javascript内置的方法里面找到,于是自己写了个方法:function getQueryString( paramName ){ paramName = paramName .replac...
阅读全文
摘要: 1.你真的懂JavaScript里面的Sort方法吗? 2.你知道JavaScript中 localeCompare 方法的函数体吗?3.表格排序 方法 要哪些参数? JavaScript中的sort方法直接就提供了排序的功能,不需要我们自己写个循环一个个的判断。但其机制仍然是那样的,[代码]输出的结果为 gray,green,red;那如果为整数呢?[代码]如果你认为是 2,7,25 ;那么很...
阅读全文
摘要: jQuery 是一个JavaScript 库,它有助于简化 JavaScript™ 以及 Asynchronous JavaScript + XML (Ajax) 编程。与类似的 JavaScript 库不同,jQuery 具有独特的基本原理,可以简洁地表示常见的复杂代码。学习 jQuery 基本原理,探索其特性和功能,执行一些常见的 Ajax 任务并掌握如何使用插件扩展 jQuery...
阅读全文
摘要: There are many tutorials that explain you about localization/globalization concept. In this articleI just tryed to explain every single point from the developer/programmer point of view. Let me b...
阅读全文
摘要: In the typical dev environment, there is a development server, a functional testing server, a quality assurance server, and one or more production servers. Let's suppose that your mandate is to modi...
阅读全文
摘要: IntroductionIf you have an ASP.NET application with authentication mode set to Windows: <authentication mode="Windows"/> <authorization> <deny users="?" /> </authorization>The...
阅读全文
摘要: 对于海量数据的插入和更新,ADO.NET确实不如JDBC做到好,JDBC有统一的模型来进行批操作.使用起来非常方便:PreparedStatement ps = conn.prepareStatement("insert or update arg1,args2....");然后你就可以for(int i=0;i<1000000000000000;i++){ ps.setXXX(realAr...
阅读全文
摘要: 第一步建立一个远程连接 使用sql-server进行分布式查询(链接服务器) 可以使用sql-server企业管理器进行建立,注意其中的rpc及rpc out两项,也可以使用sql语句来完成定义,主要涉及到三个存储过程 sp_addlinkedserver,sp_serveroption和sp_addlinkedsrvlogin,以下是三个存储过程的语法: sp_addlinkedserver...
阅读全文