Download Project

What is MVC ?

The ASP.NET MVC framework is a lightweight, highly testable presentation framework that (as with Web Forms-based applications) is integrated with existing ASP.NET features, such as master pages and membership-based authentication. The MVC framework is defined in theassembly. MVC work with 3main components: the model, the view, and the controller

Working process of mvc :

How to create MVC Project ?

At first install visual studio.

  • Open Visual studio
  • Click on “File”>New>Project>Visual c#>Web> then provide your project name> then select “ok”> then click “MVC”>ok. [if you don't understand it,you can see the video]
public ActionResult Index()
            return Content("Wellcome to TestError");

How to check MVC version in my web application ? 

1st way : expand “references” folder and find “System.Web.Mvc” then right click on this and select “properties” and you can see the version that is used.

 2nd way : at run time using this code

public string Index()
            return typeof(Controller).Assembly.GetName().Version.ToString();