上一页 1 ··· 306 307 308 309 310 311 312 313 314 ··· 341 下一页
摘要: Quick reference: .Any character except newline. \.A period (and so on for \*, \(, \\, etc.) ^The start of the string. $The end of the string. \d,\w,\sA digit, word character [A-Za-z0-9_], or whit... 阅读全文
posted @ 2009-03-19 18:36 emanlee 阅读(1200) 评论(0) 推荐(0)
摘要: 正则表达式是一个描述字符模式的对象。 Javascrīpt的RegExp对象和String对象定义了使用正则表达式来执行强大的模式匹配和文本检索与替换函数的方法. 在Javascrīpt中,正则表达式是由一个RegExp对象表示的.当然,可以使用一个RegExp()构造函数来创建RegExp对象,也 阅读全文
posted @ 2009-03-19 18:35 emanlee 阅读(364) 评论(0) 推荐(0)
摘要: Format the Date The Date field displays date and time information by default. You can format it to display only the date. To format a date field Click the Design tab. Right-click the cell with ... 阅读全文
posted @ 2009-03-18 23:30 emanlee 阅读(607) 评论(0) 推荐(0)
摘要: Enable the Safari Debug menu option on Windows To enable the Safari Debug menu option, you need to find your Preferences.plist file located in %APPDATA%\Apple Computer\Safari (%APPDATA is typically C... 阅读全文
posted @ 2009-03-18 23:29 emanlee 阅读(2836) 评论(0) 推荐(0)
摘要: ================= I have tried like this.. function fnPrint() { document.getElementById('print').style.visibility='hidden'; window.all.print(); document.getElementById('print').style.... 阅读全文
posted @ 2009-03-18 23:28 emanlee 阅读(364) 评论(0) 推荐(0)
摘要: 项目测试中,客户向我们反应,某个页面请求速度特别慢,简直无法忍受。这里简单插一些情况的描述:对于一个使用人数、并发操作并不多的项目,客户不会过多的在性能上提出要求,对他们来说,多几百ms的等待时间,不会带来更多情绪。 但是,当你请求某个页面后,去泡杯茶回来,发现页面还死死的在那里,进度条不紧不慢的一点一点增长,就无法忍受了。利用Firefox的debug[ debug ?]测了一下,... 阅读全文
posted @ 2009-03-15 23:30 emanlee 阅读(472) 评论(2) 推荐(0)
摘要: 此文只是些肤浅应用和建议(Visual Studio 2003, ASP.NET 1.1) 关于数据处理相关的优化 一、 SqlDataReader和Dataset的选择 Sqldatareader优点:读取数据非常快。如果对返回的数据不需做大量处理的情况下,建议使用SqlDataReader,其性能要比dataset好很多。缺点:直到数据读完才可close掉与数据库的连接(SqlDataRea... 阅读全文
posted @ 2009-03-15 23:28 emanlee 阅读(274) 评论(0) 推荐(0)
摘要: 数据库访问性能优化 数据库的连接和关闭 访问数据库资源需要创建连接、打开连接和关闭连接几个操作。这些过程需要多次与数据库交换信息以通过身份验证,比较耗费服务器资源。 ASP.NET中提供了连接池(Connection Pool)改善打开和关闭数据库对性能的影响。系统将用户的数据库连接放在连接池中,需要时取出,关闭时收回连接,等待下一次的连接请求。连接池的大小是有限的,... 阅读全文
posted @ 2009-03-15 23:24 emanlee 阅读(306) 评论(0) 推荐(0)
摘要: 一、返回多个数据集 检查你的访问数据库的代码,看是否存在着要返回多次的请求。每次往返降低了你的应用程序的每秒能够响应请求的次数。通过在单个数据库请求中返回多个结果集,可以减少与数据库通信的时间,使你的系统具有扩展性,也可以减少数据库服务器响应请求的工作量。 如果你是用动态的SQL语句来返回多个数据集,那我建议你用存储过程来替代动态的SQL语句。是否把业务逻辑写到存储过程中,这个有点争议... 阅读全文
posted @ 2009-03-15 23:19 emanlee 阅读(294) 评论(0) 推荐(0)
摘要: 当页面里有多个用户控件时的执行过程。UserControl1.ascx和UserControl2.ascx为先后在Test.aspx中创建的用户控件: 当Init激发时,控件都已经可用,但控件未通过ViewState对象初始化。 在所有控件都通过ViewState对象初始化之后,激发Loadfrom: http://www.dedecms.com/web-art/ASP_VbScrip... 阅读全文
posted @ 2009-03-15 23:15 emanlee 阅读(382) 评论(0) 推荐(0)
上一页 1 ··· 306 307 308 309 310 311 312 313 314 ··· 341 下一页