About the differences between ASP. NET Web Form and ASP.

Source: Internet
Author: User
Tags soap

What are the drawbacks of ASP. NET Web Forms?

1. The view state is bloated: the server and client transfer process contains a large number of attempted states-even up to hundreds of KB in today's Web program, and requests each round trip, resulting in increased server request bandwidth, slowing the server and client interaction speed. 2. Page life-cycle complexity: The control code between client and server events and the life cycle of some pages is complex and subtle, and in the event of an error, few programmers can successfully control the state to find the problem. 3. Incomplete code separation: the front-and-back code separation for ASP. NET Web Forms is good for separating the foreground presentation code from the background business logic, but not enough, a large number of presentation logic and data logic code and business logic code are plugged into the background code. 4. Unable to fully control HTML: Server controls are convenient, but converting to HTML may not be what you want, and there are many problems with server controls that apply to CSS and JavaScript (such as the inability to find ID or style contamination, etc.). This is the most unacceptable decision I have made. 5.asp.net Web Form tries to hide the logical relationship between HTML and HTTP, it is difficult for you to customize these properties. 6.asp.net Web Form mode is difficult to implement automated unit testing. The advantages of Adp.net Web Form: 1. Fast, fast and relatively simple to develop. What are the benefits of ASP. 1. With the MVC pattern, the MVC pattern is more consistent with the current web interaction pattern. 2. Extensibility is good, can be derived, and rewritten using the original class. 3. Better control of HTML and HTTP, in line with CSS and JavaScript standards. Support for custom controls. 4. Easier automated Unit Testing 5. More powerful and intelligent routing system. (If the three-level intranet with MVC development, now want to change a virtual directory name is easy to loose) 6. Use more modern api7. Open source

Rest is representational state passing (English: representational, Transfer, or rest) is a software architecture style proposed by Dr. Roy Fielding in his doctoral dissertation in 2000. It is a design and development method for network application, which can reduce the complexity of development and increase the scalability of the system. There are currently three mainstream Web service implementations, as the rest-mode Web services are significantly more concise compared to the complex soap and XML-RPC, and more and more Web services are being designed and implemented in restful style. For example, Amazon.com provides close-to-rest-style Web services for book searches, and the Web services provided by Yahoo are restful.

Simple Object Access Protocol (SOAP) is a lightweight, simple, XML-based protocol that is a protocol specification for exchanging data, a lightweight, simple, XML-based (standard generic Markup Language) protocol that is designed to exchange structured and solidified information on the web. SOAP can be used in conjunction with many existing Internet protocols and formats, including Hypertext Transfer Protocol (HTTP), Simple Mail Transfer Protocol (SMTP), Multipurpose Internet Mail Expansion Protocol (MIME). It also supports a large number of applications, from the messaging system to Remote procedure calls (RPCs).

About the differences between ASP. NET Web Form and ASP.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.