Dive Into ASP.Net MVC4

This article will provide you a quick introduction to ASP.NET MVC 4 as well as an explanation of how ASP.NET MVC 4 fits into ASP.NET.

Some other major facets of this article are, what's new in ASP.NET MVC 4 how to determine your development environment to build ASP.NET MVC 4 applications.

Introduction | ASP.NET MVC 4

ASP.NET MVC is a fabric for building network applications that use the general and basic model View Controller pattern to the ASP.NET MVC and the ASP.NET framework are connected in some aspects and depending on the functionality.
ASP.NET MVC in ASP.NET
ASP.NET MVC in ASP.NET

ASP.NET comes into the light in 2002, at that time it was easy to imagine both ASP.NET and Web Forms together as a single unit or we can say as the same thing. ASP.NET has always supported two layers of abstraction for supporting both the features and some other too, these two layers of ASP.NET framework are as follows.

(I described them as Layer1 and Layer2, it does not mean they are in this specific order.)

System.Web.UI

This is a web form layer that is found in a namespace list. This layer consists of a wide-eyed, clean feel.

System.Web.UI

System.Web

This is the second stratum. This layer provides this set of functionalities:

/System.Web

Functionality

The mainstream method of developing ASP.NET MVC with ASP.NET are:

  • Drag Drop server controls
  • Semi magical states
  • A entire web stack
  • Optimal HTTP web UI
  • Built in web framework

MVC | Description

Model View controller (MVC) has been an important architectural pattern in the history of computer science for many years. At the outset, it was known as Thing MODEL View EDITOR in 1979. It was later simplified into MODEL VIEW CONTROLLER.

It is a powerful tool, or we can say framework, for classifying the data access logic from display logic by the means of accessing or applying several new and classic functionalities to our applications and web forms as well.

MVC also explicitly separates the concerns and adds a small amount of extra complexity to an application's design, but the extraordinary benefits are also provided by it, that can be easily seen during development.

MVC | User Interface (UI)

The following are the 3 major concerns of the user interface:

User Interface

The Model

A model is a set of classes that are used for describing the data that we are working on/with. It also defines business rules for how the data can be modified and controlled.

The View

It specifies how the application's UI will be displayed and all the design and view concerns are related to it.

The Controller

It is beside a set of classes like models in general. The primary chore of these divisions is to handle the communication between the user and overall web application.

MVC | Web Frameworks

The MVC pattern is frequently used in web programming and applications. With ASP.NET MVC it's based on the following three aspects.

Model

Models are generally a set of classes that define the complete information of the domain you are interested in.

Some operations of this pattern are:

  • Encapsulate stored data
  • Code manipulation
  • Data manipulation
  • DOMAIN Specific business logic

View

It is a secondary pattern unit, its functionalities are:

  • Generation of HTML code
  • UI display
  • Representation
  • Structure

Controller

It is a special class that handles the relationship between a view and a model, we can also call it an INTERFACE BETWEEN VIEW and MODEL unit.

Up Next
    Ebook Download
    View all
    Learn
    View all