Create a sample ASP.net MVC 5 Project


Until now I didn't get a chance to improve my MVC skills, I planned to learn it by doing some samples. After Google it, I found one best Article written by ShivPrasad Koirala, he given very brief description about ASp.net MVC and give some samples using ASP.net MVC. 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.

1

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

2

Step 3:Select MVC Template

3

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

5

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

6

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.

7

Result:

And run the application like below format. b>http://Instance/ControllerName/MethodName

8


Article by naveensanagasetti
I hope you enjoyed to read my article, If you have any queries out of this then please post your comments.

Follow naveensanagasetti or read 139 articles authored by naveensanagasetti

Comments

No responses found. Be the first to comment...


  • Do not include your name, "with regards" etc in the comment. Write detailed comment, relevant to the topic.
  • No HTML formatting and links to other web sites are allowed.
  • This is a strictly moderated site. Absolutely no spam allowed.
  • Name:
    Email: