title: Retrieving server name and database from connection string for crystal report asp.net web.config
body: <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.</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>