Simple Hello world in MVC application
Come lets start with simple MVC project
Step 1: Create a new project in VS 2010
Step 2: Select ASP.NET MVC 4 Web Application and type Project name
Step 3: Select template Empty/Basic/Internet Application and select view engine to Razor and press OK
Step 4: Create Controller in Controller folder and named it as HelloWorldController
Step 5: Right click on ActionResult Index and click on Add View.
Step 6: Index.cshtml view engine will generated, type text and run the application
Type the URL in browser as http://localhost/HelloWorld/Index
No comments:
Post a Comment