Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles
(untagged)

ASP.NET MVC-5 CRUD Application with drop down list

0.00/5 (No votes)
27 Aug 2014 1  
ASP.NET MVC 5 applications

Introduction:

This tutorial will teach you the basics of building an ASP.NET MVC 5 Web application using Visual Studio 2013. I'll show you step-by-step operations using simple screen shorts. So get ready for that journey.

You need to about ASP.NET, SQL Server 2008 R2 & Visual studio 2013.

  • Models: Classes that represent the data of the application and that use validation logic to enforce business rules for that data.
  • Views: Template files that your application uses to dynamically generate HTML responses.
  • Controllers: Classes that handle incoming browser requests, retrieve model data, and then specify view templates that return a response to the browser.

How MVC works?

Application process:

 

Now create the project

  1. Open visual studio 2013, select new project

 

 

  1. Select ASP.NET Web application & assign name MyMVCApp then just click ok.

 

 

  1. Then select MVC & just click ok buttons.

 

 

 

  1. Now right click into model then add then New Item

  1. Now select ADO.NET Entry Data Model and write the name “MyAppEDM” and just click Add button.

 

 

  1. Now select Generate from database then click next.

 

  1. Now click New connection.