The MVC Programming Model

MVC is a framework for building web applications using a MVC (Model View Controller) design:
  • The Model is the part of the application that handles the logic for the application data.
    Often model objects retrieve data (and store data) from a database
    The View is the parts of the application that handles the display of the data.
    Most often the views are created from the model data.
    The Controller is the part of the application that handles user interaction.
    Typically controllers read data from a view, control user input, and send input data to the model.
      
  • Web Forms vs MVC

    The MVC programming model is a lighter alternative to traditional ASP.NET (Web Forms). It is a lightweight, highly testable framework, integrated with all existing ASP.NET features, such as Master

    What is Razor?

  • Razor is a markup syntax for adding server-based code to web pages
  • Razor has the power of traditional ASP.NET markup, but is easier to learn, and easier to use
  • Razor is a server side markup syntax much like ASP and PHP
  • Razor supports C# and Visual Basic programming languages
  • Pages, Security, and Authentication