Thursday 19 November 2015

Sample MVC5 Application

        In this article I'm going to explain how to create a simple Program in ASP.net MVC using Controller. This article will help those who are beginners to ASP.net MVC.

 

Create ASP.net MVC 5 Project:




Summary:



In this article I'm going to explain how to create a simple Program in ASP.net MVC using Controller. This article will help those who are beginners to ASP.net MVC.

Follow below steps to accomplish the task.


Step 1: 

 
Open Visual Studio 2013 or higher, then click on File-> New -> Project.
 
 

Step 2:

 
Select Web Application and give name and location then press Ok button.
 

Step 3:

Select MVC Template
 

Step 4:

Select Controller in solution explorer then right click on Controller and then Add new Controller.
 
 

Step 5:

Select "MVC 5 Controller – Empty" then click on Add.
 
 

Step 6:

Give a name for that Controller as "DemoController" and click on Add button. Keep in mind while given Controller name do not delete Controller name.

Step 7:

Design your Method over there.

Result:


And run the application like below format.


 
 
 
 
 
 
 
 
 
 

No comments:

Post a Comment