What is MVC? | Eklavya Online

What is MVC?

Model-View-Controller (MVC) is a pattern to separate an application into the following three main components:

  • Model
  • View
  • Controller
    The ASP.NET MVC framework provides an alternative to the ASP.NET Web Forms pattern for creating web applications. 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 authentications. The MVC framework is defined in the System.Web.MVC assembly. It provides full control over HTML, JavaScript, and CSS. It’s the better as well as a recommended approach for large-scale applications where various teams are working together.
    The ASP.NET MVC framework offers the following advantages,
  • It makes it very easy to manage complexity by dividing an application into the Model, View and Controller.
  • It does not use view state or server-based forms.
  • Full control over HTML, JavaScript, and CSS.
  • It provides better support for Test-Driven Development (TDD).
  • It works well for Web applications that are supported by large teams of developers and for web designers who need a high degree of control over the application behavior.
  • By default support of Facebook and Google Authentication.
  • It easy to manage a large application to divide into multiple areas.