Retrieving server name and database from connection string for crystal report asp.net web.config
<p>I am retrieving connection string based on value stored in cookie.Now
I am making crystal report. I cannot hard code server credential. I have to get these credential from connection string from web.config. so that i can pass these credentials to my crystal report .
Please Help It's urgent.</p>

<pre><code>ConnectionInfo reportConnectionInfo = new ConnectionInfo();
reportConnectionInfo.ServerName = connection string server name from web.config
reportConnectionInfo.DatabaseName = connection string database name from web.config
reportConnectionInfo.UserID = ...;
reportConnectionInfo.Password = ...;
</code></pre>
