ASP.Net MVC: Getting started with MVC, HelloWorld Application and passing data from Controller to View
Now we have learned the basics of ASP.Net MVC and the typical folder structure of MVC application. · So let’s start with a sample “HelloWorld” application (as we normally do whenever we learn any new language). · Select File -> New -> Project, select ASP.NET MVC 3 Web Application and give the application a name as “HelloWorldApp” and click OK. · New ASP.NET MVC 3 Project wizard opens; o As you can see in the snapshot there are three templates (Empty, Internet Application, and Intranet Application), we’ll use the Empty template for this project. o There are two options to write view for our MVC application “ASPX” (aspx pages) and “Razor”, let’s select “Razor” as an option and click OK. · Our new project is ready...