In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
What is the principle of ASP.NET MVC 2.0 framework? I believe many inexperienced people don't know what to do about it. Therefore, this article summarizes the causes and solutions of the problem. Through this article, I hope you can solve this problem.
There are two main ways to develop Web applications using Microsoft VS tools: one is to create ASP.NET Web Forms commonly used, and the other is ASP.NET MVC, which is emphasized today.
Web Forms consists of two parts: the Aspx file and the background code aspx.cs file.
The advantages of Web Forms are:
◆ HTML interface is separated from business logic
◆ 's rich server controls speed up development
◆ data binding technology
Event-based Program Model of ◆
◆ user Control and third Party Control Technology
What is ASP.NET MVC?
ASP.NET MVC Framework is a set of class libraries added by Microsoft to ASP.NET, which can use Model-View-Controller design patterns to develop ASP.NET applications.
Model: includes application information such as data, validation rules, data access, and business logic.
View: encapsulates the presentation layer of the application and is the information presented to the user.
Controller: including control flow logic, control information flow and application execution. Accept instructions and data from users and integrate Model with View as a controller. When the server receives a request for an ASP.NET MVC application, the server (IIS) first uses UrlRoutingModule (ASP.NET Routing's HTTP module) to parse whether there is a URL containing the ASP.NET MVC application. If so, a MvcRouteHandler object is generated, which will load the necessary information for execution. And the Execute method of the Controller contained in the URL is called to perform the work.
The advantages of Web application MVC are:
◆ makes it easier to manipulate HTML tags
◆ is more easily integrated with Jquery to realize Ajax technology.
◆ creates SEO-friendly URLS
◆-driven development is easier
The history of ASP.NET MVC development
The RTM version of ASP.NET MVC Framework was released on March 17, 2009, and the new MVC2.0 was released on March 11, 2010. the RTM version for version 3.5 of NET Framework has been integrated with MVC2.0 in Visual Studio 2010. The tool used in the next series of articles is Visual Studio 2010 MVC2.0
New features of ASP.NET MVC2.0
The main new features of MVC2.0 are:
◆ Areas: allows you to organize multiple logical layers to facilitate team development.
◆ UI Helpers: you can use strongly-typed helpers to modify and display data, making it easier to maintain legacy programs, thus providing high development efficiency.
◆ server-side validation: you can use declarative annotations to define validation rules for your model.
◆ client-side validation: automatically generates model-based client-side validation.
After reading the above, have you mastered the principles of the ASP.NET MVC 2.0 framework? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, thank you for reading!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.