02 2012 档案

摘要:System.InvalidOperationException: Timeout expired.The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled connections were in use and max pool size was reached.Timeout expired 异常是个很棘手的异常,想必几乎每个人都碰到过。有时可真是对它咬牙切齿,拿它没办法。 angelsb这篇文章很好,希望对大家有用。 阅读全文
posted @ 2012-02-29 15:12 jake2011 阅读(356) 评论(0) 推荐(0)
摘要:我们在做.NET程序时,如果我们是在表单中的文本框中按下的回车键进行的提交,那么服务器端会不会认为是点击了某个提交按钮呢?答案是不会的,那么是不是不能实现呢,当然是可以的了。这里需要用到一个defaultbutton属性。我们只要在form中加入defaultbutton="BTID"这样就可以了,defaultbutton看英文也知道是默认按钮。代码如下:<form id="form1" runat="server" defaultbutton="btnReg">btnReg就是按钮的ID,这样就可以 阅读全文
posted @ 2012-02-21 15:02 jake2011 阅读(327) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2012-02-04 14:06 jake2011 阅读(645) 评论(0) 推荐(0)