The ASP.NET MVC framework provides an alternative to the ASP.NET Web Forms pattern for creating MVC-based 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 membership-based authentication and master pages. The MVC framework is defined in the System.Web.Mvc namespace and is a fundamental, supported part of the System.Web namespace.
Features of ASP.NET MVC:-
- (SOA) Separation of concern (input logic, business logic, and UI logic), which allow testability, and test-driven development (TDD) by default.
- Highly customizable as the components of the ASP.NET MVC framework are designed so that they can be easily replaced or customized. We can plug in your own view engine, URL routing policy, action-method parameter serialization, and other components.
- The ASP.NET MVC framework also supports the use of Dependency Injection (DI) and Inversion of Control (IOC) container models. Dependency Injection allows you to inject objects into a class, instead of relying on the class to create the object itself. Inversion of Control specifies that if an object requires another object, the first objects should get the second object from an outside source such as a configuration file. It allows us testability.
- A powerful URL-mapping component that lets you build applications that have comprehensible and searchable URLs. URLs do not have to include file-name extensions, and are designed to support URL naming patterns that work well for search engine optimization (SEO) and representational state transfer (REST) addressing.
- ASP.NET MVC Support for existing ASP.NET features. ASP.NET MVC lets you use features such as forms authentication and Windows authentication, URL authorization, membership and roles, output and data caching, session and profile state management, health monitoring, the configuration system, and the provider architecture.
Summary: This article is all about features of ASP.NET MVC. You can read about Model Binding in ASP.NET MVC with Example and also about
ASPX and Razor View Engine and details about HTML Helpers in ASP.NET MVC. Hope, you would like this article.