Introduction to ASP.NET MVC or MVC Beginners Introduction

ASP.NET MVC is a web application development framework built on top of Microsoft mature .Net Framework.

 

Before starting the introduction to Asp.net MVC Framework, let’s check past where Microsoft has a long dream of creating windows based web development platform.

Microsoft various web Development Platforms

The following are the platforms that are introduced by Microsoft before Asp.Net MVC.

Active server pages

First, Microsoft has created the Active server pages (ASP). In this, all code was written on the same page (scripts and server code, which became hard to understand and Maintain ). After that, to overcome these things, Microsoft produces another solution as Asp.net WebForms.

ASP.NET Web Forms

Asp.net WebForms was a solution to the problem of ASP. The Web Forms came with separation of code. In this, we have separate UI and server code (HTML | SERVER), so it's easy for developers to develop applications and fast too. This was the best Framework for many developers, and many websites have been developed from it.

 

But the problem with Framework was that we could not reuse code because (.aspx.cs) it is tightly coupled with (.aspx), and this also creates problems while testing the application because we cannot isolate this application because of tight coupling. For that, Microsoft came with a new flavor for the web developing platform was MVC.

Asp.Net MVC (Model View Controller)

  • In 2008 Microsoft introduced the first version of MVC.
  • MVC (Model View Controller) is an architectural pattern.
  • This is a new Microsoft flavor for developing web applications known as MVC (Model View Controller).
  • This is a totally different way of development from a page-based approach of web forms.
  • Think to remember is ASP.NET MVC it is no replacement for ASP.NET Webforms. It’s another way to develop the application.
  • Both ASP.NET Webforms and ASP.NET MVC are built on top of the ASP.NET Framework.
  • Explaining below the flow of MVC architecture in short.
  • The MVC framework is defined in the System.Web.MVC assemblies.