Press Release / Computer / First MVC Application: Hello World Application.
First MVC Application: Hello World Application.
By DotNet360 on March 04 2015 | 431 Views
Free Learning .Net, Dot Net, asp.net, c#.net, ado.net, wcf, mvc, api, restful services, wcf services, web services, Jquery, Javascript, Html, bootstrap, angularjs, MS Sql, sql, oracle, xml, c, c++, da
First MVC Application: Hello World Application.
Step:-1 Open the Visual Studio 2012.
Step:-2 Click on New Project.
Step:-3 Select Web Under Visula C#.
Step:-4 Select Asp.Net MVC 4 Application.
Step:-5 Name the application as per your choice. Here it is MvcHelloWorldApplication. Then Click OK.
Step:-6 Select Internet Application and View Engine as Razor. As we are going to use Razor Engine for this. Click OK.
Step:-7 Press F5 and run the appliction. It will look like this.
Step:-9 Now Click on Controller and Add New Controller.
Step:-10 Name the Controller: HelloWorldController. And do not remove word Controller.
Step:-11 Right Click on the Index() method of the HelloWorldController.And Click Add View.
Step:-12 Index.cshtml page will be generated in View Folder of HelloWorld.
Step:-13 Change the Code as Per the diagram above.
Step:-14 Press F5 and run the application.
Step:-15 Navigate to, helloworld
Step:16 Your Hello World Application is ready.
|
Latest Exclusive Press Release |
|