The most common section of web.config file the connectionStrings sections allows us to store multiple connection strings that are used in the application. The
connectionStrings tag
consists of child element with attributes name and connectionstring which is used to identify the connectionstring and the other is also used to connect to the database server respectively.
The general connectionstring settings are shown below in the code:
<connectionStrings>
<add name ="cnn" connectionString ="Initial Catalog = master;
Data Source =localhost; Integrated Security = true"/>
</connectionStrings>
Join MindStick Community
You need to log in or register to vote on answers or questions.
We use cookies to ensure you have the best browsing experience on our website. By using our site, you
acknowledge that you have read and understood our
Cookie Policy &
Privacy Policy.
ConnectionStrings
The most common section of web.config file the connectionStrings sections allows us to store multiple connection strings that are used in the application. The connectionStrings tag consists of child element with attributes name and connectionstring which is used to identify the connectionstring and the other is also used to connect to the database server respectively.
The general connectionstring settings are shown below in the code: