Create Areas in the MVC project

Introduction to Area Areas are logical grouping of Controller, Models and Views and other related folders for a module in MVC project. Steps to create Step 1: Create a new MVC project in the visual studio Step 2: Right click on the project and Add Area MVC automatically adds a full structured folder in the … Continue reading Create Areas in the MVC project

Advertisements

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