2011年8月25日

数据库连接

摘要: http://www.cnblogs.com/LoveJenny/archive/2011/08/09/2131664.htmlhttp://www.cnblogs.com/jeffwongishandsome/archive/2011/08/09/2133114.html首先要说明的是连接数是有限制的:代码如下:for (int i = 0; i < 10000; i++){SqlConnection conn = new SqlConnection(@"Data Source=.\SQLEXPRESS;AttachDbFilename=""E:\DB\N 阅读全文

posted @ 2011-08-25 20:52 CodingForever 阅读(217) 评论(0) 推荐(0) 编辑

memcached 命令

摘要: http://blog.csdn.net/spring21st/article/details/6541110http://asdfblog.com/technology/memcached-for-win32-command-summary.htmltelnet <hostname> <port>In the following \r\n mean you have to type enter in telnet consoleIf Memcached server send ERROR or CLIENT_ERROR, something is false with 阅读全文

posted @ 2011-08-25 11:44 CodingForever 阅读(1792) 评论(0) 推荐(0) 编辑

RegisterStartupScript跟RegisterClientScriptBlock的差別

摘要: http://www.dotblogs.com.tw/jimmyyu/archive/2009/04/25/8175.aspx先前對這兩個function有諸多誤解,後來上國外的討論區看了一下,使用RegisterStartUpScript 時,該段Script會被註冊在</from>的結尾前,而使用RegisterClientScriptBlock ,該段script會被註冊在<form>的結尾後,網頁的render機制是這樣的:html xmlns="http://www.w3.org/1999/xhtml" ><head>&l 阅读全文

posted @ 2011-08-25 10:57 CodingForever 阅读(171) 评论(0) 推荐(0) 编辑

导航