ASP.Net MVC Framework


ASP.Net MVC Framework

This mvc tutorial covers Mvc framework - An Overview, Mvc programming model, difference between Web Forms vs MVC, MVC Architecture and features.

ASP.Net MVC gives you a powerful, patterns-based way to build dynamic websites that enables a clean separation of concerns and that gives you full control over markup for enjoyable, agile development. ASP.Net MVC includes many features that enable fast, TDD-friendly development for creating sophisticated applications that use the latest web standards.

ASP.Net MVC Overview
The Model-View-Controller (MVC) architectural pattern separates an application into three main components: the model, the view, and the controller. The ASP.NET MVC framework provides an alternative to the ASP.Net Web Forms pattern for creating Web applications. mvc overview,microsoft mvc,mvc architecture in .net with example, aspnet mvc tutorial,aspnet mvc 4,aspnet mvc 3, why to use mvc architecture, why use mvc in asp net
mvc design pattern example

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 the System.Web.Mvc assembly.

MVC Programming Model MVC structure allows you to separate Business Layer (Model Logic), Database Access and PresentationThe MVC framework includes the following components:

Model objects are the parts of the application that implement the logic for the application's data. 
  • MVC model is basically a C# or class
  • Model can be accessible by both controller and view
  • Model can be used to pass data from controller to view
  • A view can use model to display data in page.

Views are the components that display the application's user interface (UI). Typically, this UI is created from the model data.
  • View is  a web form without having a code behind file
  • All page specific HTML generation and formatting can be done inside view
  • One can use Inline code (server tags) to develop dynamic pages
  • A request to view (web form) can be made only from a controller’s action method

Controllers are the components that handle user interaction, work with the model, and ultimately select a view to render that displays UI. In an MVC application, the view only displays information; the controller handles and responds to user input and interaction. For example, the controller handles query-string values, and passes these values to the model.
  • Controller is a c# or class which inherits System.mvc.controller
  • Controller is a heart of the entire mvc application architecture
  • Inside Controller’s class action methods can be implemented which are responsible for responding to browser OR calling views.
  • Controller can access and use model class to pass data to views
  • Controller uses ViewData to pass any data to view

Advantages of ASP.Net MVC Framework
The ASP.Net MVC framework offers the following features: -
  • It makes it easier to manage complexity by dividing an application into the model, the view, and the controller.
  • It does not use view state or server-based forms. This makes the MVC framework ideal for developers who want full control over the behavior of an application.
  • It uses a Front Controller pattern that processes Web application requests through a single controller. This enables you to design an application that supports a rich routing infrastructure. For more information, see Front Controller.
  • 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.

Difference between 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 Pages, Security, and Authentication.
mvc design pattern in c#,mvc design pattern example,mvc design pattern interview questions,mvp design pattern
mvc architecture

    Asp.Net MVC Application Architecture

    Please find the below snap shot of an application project architecture. This will give you better picture of MVC pattern example.
      mvc pattern example, mvc project, mvc development, mvc application mvc application example
      In this article, I discussed about mvc, mvc architecture, mvc framework example and advantages of framework. I hope this article would have helped you in understanding ASP.Net MVC.
      ASP.Net MVC Framework Reviewed by Ravi Kumar on 6:05 PM Rating: 5

      No comments:

      All Rights Reserved by Etechpulse © 2012 - 2017

      Contact Form


      Email *

      Message *

      Powered by Blogger.