Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the differences between ASP.NET MVC and WebForm

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly explains "what are the differences between ASP.NET MVC and WebForm", the explanation content in this article is simple and clear, easy to learn and understand, please follow the idea of Xiaobian slowly in-depth, together to study and learn "what are the differences between ASP.NET MVC and WebForm"!

1. Some problems in traditional WebForm development

In traditional ASP.NET development, Microsoft's development team designed a rapid development environment for developers to drag and drop controls in visual designers and write code in response to events. However, the negative effects are:

Because controls encapsulate so much, it's hard for developers to understand how HTML works behind them.

It is easy to get a page with a lot of ViewState, making the page size much larger than what is needed, making the page slow to open

Not easy to test.

2. What is MVC?

Model-View-Controller (MVC) is a software architecture pattern in software engineering. It divides the software system into three basic parts: Model, View and Controller.

3. What is ASP. NETMVC?

ASP.NET MVC is an easy-to-test framework developed by Microsoft's development team based on MVC. It has the following characteristics:

No data transmission

View state is not saved in the page

Developers have full control over how pages are rendered

Easy unit testing

Easy to test drive development

Scalable, replaceable

Support WebForm related features, such as user controls, master pages, data binding, localization, etc.

Instead of a file-based directory structure, map URLs to controllers

4. Why ASP.NET VC?

Easy unit testing

Easy to test drive development

Avoid bloated page files caused by a large number of ViewStates in WebForms

What are the differences between ASP.NET VC and WebForm?

MVC and three-tier architecture?

MVC is a pattern.

ASP.NET MVC is a development framework based on MVC pattern.

A three-tier architecture is an architecture

As for the distinction, it can be strictly separated from the concept.

7. Coexistence of two technologies

ASP.NET MVC framework is only to provide developers with a choice to develop web applications, not to replace Webform

These two technologies have their own advantages and disadvantages, developers need to choose the corresponding technology according to the actual situation

Sometimes, you can mix the two techniques in the same project

Thank you for reading, the above is "ASP.NET MVC and WebForm what the difference is" content, after learning this article, I believe that we have a deeper understanding of the difference between ASP.NET MVC and WebForm, the specific use of the situation also needs to be verified. Here is, Xiaobian will push more articles related to knowledge points for everyone, welcome to pay attention!

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.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report