title: How to add CommandTimeout to connection string in web.config
body: <p>How to add CommandTimeout to connection string in web.config?</p>
  
  <p>I tried:</p>
  
  
  
  <pre class="lang-xml prettyprint-override"><code>&lt;add name="ConnectionString" connectionString="Data Source=;Initial Catalog=;Persist Security Info=True;User ID=sa;Password=sa@123;Connect Timeout=200" providerName="System.Data.SqlClient"/&gt;
  
  &lt;/connectionStrings&gt;
  </code></pre>
  
  <p>and this:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;add name="MyProject.ConnectionString"  
           connectionString="Data Source=127.0.0.1;Initial Catalog=MyDB;Persist Security Info=True;CommandTimeout=60;User ID=sa;Password=saPassw0rd"
           providerName="System.Data.SqlClient" /&gt;
  </code></pre>
  
  <p>but it didnt' work for me.</p>
  
  <p>Thanks </p>