SqlConnection con = new SqlConnection("server=.;database=myDB;uid=sa;pwd=;");
con.ConnectionTimeout = 180;//报错,属性ConnectionTimeout 为只读!
据说还要在web.config里面添加con.ConnectionTimeout = 180;//报错,属性ConnectionTimeout 为只读!
<system.web>
<httpRuntime maxRequestLength="102400" executionTimeout="720" />
</system.web>
试了下,没有也可以,因为这个问题不是http request超时
<httpRuntime maxRequestLength="102400" executionTimeout="720" />
</system.web>