Intermedia offers ASP.NET MVC FRAMEWORK on all Windows Web Hosting Plans
ASP.NET MVC Framework — a framework for building web applications that implements the pattern Model-View-Controller. This framework is added by Microsoft in ASP.NET in 2007. MVC is the application architecture (perhaps not only web applications) in which the user interface, business logic and data model are separated from each other.
MVC is not a project template, it’s a structural pattern that describes a method for constructing the structure of our application, responsibilities and interaction between each of the parts in this structure. It was first described in 1979, of course, for other environments. Then there was no concept of a web application.Tim Berners Lee sowed the seeds of World Wide Web (WWW) in the early nineties and forever changed the world.Template, that we use today, is an adaptation of the original template for web development.
Rabid popularity of the structure in the web application was introduced by its inclusion in two development environments have become very popular: Struts and Ruby on Rails. These two development environments pave the way for hundreds of desktop environments created later.
The idea that underlies the structural pattern MVC is very simple: you have to clearly share the responsibility of different functioning in our applications:
- Model for data processing and application logic,
- View for data users in any supported format,
- Controller for processing user requests and calls suitable.
Three main components in MVC
Application is divided into three main components, each of which is responsible for various tasks.
Controller manages user requests (received in the form of an HTTP GET request or POST, when the user clicks on the interface elements to perform various actions). Its primary function — to call and coordinate the necessary resources and facilities necessary to perform the actions specified by the user. Typically, the controller calls the appropriate model for the problem and selects the appropriate type.
Model — data and rules that are used for data that represent the concept of application management. In any application, the entire structure is modeled as data that are processed in a certain way. Model provides a representationof the data controller, who asked for a user (message, page, book, album, etc.). The data model will be the same, regardless of how we want to present them to the user. Therefore, we choose any available form to display data.The model contains the most important part of the logic of our application logic that solves the problem with which we deal (forum, shop, bank, etc.). The controller contains mostly organizational logic of the application (much like housework).
View provides different ways of presenting data that are derived from the model. It can be a template that is filled with data. There may be several different species, and the controller selects which best suits the current situation. Web application typically consists of a set of controllers, models and views. The controller can be arranged as a principal, who receives all requests and calls the other controllers to perform actions depending on the situation.
The most obvious advantage that we get from the concept of MVC — a clear separation of presentation logic (UI) and application logic.
Support for different types of users that use different types of devices is a common problem nowadays. Provided interface should differ if the request comes from a TestimonialPersonal computer or mobile phone. Model returns the same data, the only difference is that the controller selects different types of print data.
In addition to the isolation of the application logic, the concept of MVC significantly reduces the complexity of large applications. The code is a much more structured and thus easier to support, testing and re-use decisions.
Intermedia web hosting platform is ASP.NET MVC 2.0 compatible. ASP.NET MVC 2.0 was released on March 11, 2010. The main ASP.NET MVC hosting featuresare clean separation, supports existing ASP.NET page features, supports existing ASP.NET features (such as membership and roles, output and data caching, session and profile state management), extensible and URL mapping.