ASP.NET MVC Web.config move AppSettings to separate file

Let’s get the appSettings inside the web.config file to a separate file for better maintenance of the code. Step 1: Open your web.config file. Step 2: You will see your appSettings code in there Step 3: Create a new config file in the project name "PrivateSettings.config" and add the settings code you want to keep … Continue reading ASP.NET MVC Web.config move AppSettings to separate file

ASP.NET MVC Web.config move ConnectionStrings to separate file

Let's get the connectionStrings inside the web.config file to a separate file for better maintenance of the code. Step 1: Open your web.config file. Step 2: You will see your connectionStrings code in there Step 3: Add a new config file name as ConnectionStrings.config and copy the above code into it Step 4: In your … Continue reading ASP.NET MVC Web.config move ConnectionStrings to separate file