How to Mention Connection String in web.config File?
In just five easy steps You can add/mention the connection string in the web.config file .
1. Log in to the Plesk panel using root account.
2. To open the File Manager Select the File option.
3. Navigate to the httpdocs folder and open the web.config file.
4. The file will get open in the Code Editor window. Add the code as given below in the configuration section.
<connectionStrings>
<add name=”ConnectionString” connectionString=”Data Source=SERVER IP;Initial Catalog=DBname;User Id=DBuser;Password=DBuser password;” providerName=”System.Data.SqlClient” />
</connectionStrings>
5. After adding the code, click the Save button.
Thus with this, you will have successfully mentioned the connection string in the web.config file.