programming we consider all important topic for knowledge about controls,web Services, JSON, Ajax, database, and interview related Question. In this and sql server tutorial blog we give many examples of jquery as like How Play YouTube Video in Your Website by URL, How to Play YouTube Videos in by using Jquery , Jquery Change div background on mouseover in , JQuery UI Datepicker (Calendar) etc.

Monday, November 10, 2014

Create Demo with C# MVC Application

Create Demo with C# MVC Application:

In this post we create a first Demo application of MVC (model view controller). As we know that the MVC is a framework of in my past post we learn some important theoretical knowledge of MVC model for this we give some topic in this blog these are:

ASP.NET MVC Application:

Now we stat how to create a MVC web application in or we can say how to start work in MVC framework.


For creating a demo in MVC of we describe some steps:

Step 1:
  • First of all open the IED (integrated development Environment) .
  • Go to file menu ---> Project ---> choose net MVC web Application As like in given Image.

Create Demo with C# MVC Application by parijat
Create Demo with C# MVC Application by parijat

Step 2:
  • After creating web application we see some folders in Solution Explorer (MVC project hierarchy) these are –

         Controllers, Models and view. These three is a major folder of MVC project.

Here we can also see some files which are created by default in different -2 folders.
  • Controllers -: this has AccountController.cs   and HomeController.cs. The controller is nothing only a class file (.cs) with Action Methods.
  • Models: this has AccountModels.cs file.
  • View: view has some sub folder with files as describe in Image.Create Demo with C# MVC Application by parijat

As we see in this, here we have one by default created control is “HomeController “with some message. So we debug this application and see the result.

Create Demo with C# MVC Application by parijat

If you can change the url by

You get the same result. 
In MVC application first executes the controller file and then view. The view use for represent or display the data in web browser so we can say that view is a web page where we display the data for user.

Other MVC related post:

In the Next post we consider fallowing in MVC:

Sql Server Qus:

No comments:

Post a Comment