How to give connection string as a key value?
<p>I want to  give connection string as a key.
So I write in web.config this code.</p>

<p></p>

<pre><code>    &lt;add key="connectstring" value="Data Source=USER-PC;Initial Catalog=DBName; Integrated Security=False; providerName=System.Data.SqlClient"/&gt;
  &lt;/appSettings&gt;
</code></pre>

<p>but there is error and it says</p>

<pre><code>Keyword not supported: 'providername'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ArgumentException: Keyword not supported: 'providername'.

Source Error:

Line 28:             SqlConnection conn;
Line 29:             conn = new SqlConnection(ConfigurationManager.AppSettings["connectstring"].ToString());
Line 30:                 
Line 31: 
</code></pre>

<p>How can I solve it??</p>
