Fundamental differences between ASP and ASP. NET

Source: Internet
Author: User

The biggest difference between ASP. NET and ASP is the conversion of programming thinking, not just the enhancement of functions. ASP uses scripts such as VBS/JS
Hybrid html language programming, and those scripting languages are weak type, structure-oriented programming languages, rather than object-oriented, which obviously produces
Below are several questions:
1. The Code logic is chaotic and difficult to manage: Because ASP is a mixed html programming language, you can hardly see the logic relationship of the code, and
As the complexity of the Program increases, it is very difficult to manage the code, or even exceeds the management capability that a programmer can achieve, resulting in
Errors or such problems.
2. Poor code reusability: Because the code is structured-oriented and mixed with html, the page prototype may be modified a little.
All programs need to be modified, not to mention code reuse.
3. potential errors caused by weak data types: although it is easier to use a weak data type programming language
The chance of an error is far from worth the candle.
The above is the weakness of the language itself. ASP also has problems in terms of functions. The first is that the functions are too weak and some underlying operations can only be implemented through components.
Finished, which is far inferior to PHP/JSP at this point, followed by lack of complete Error Correction/debugging functions, which is similar to ASP/PHP/JSP at this point.

So what are the improvements to ASP. Net?
ASP. Net is free from the disadvantages of programming with scripting language in ASP. In theory, any programming language, including C ++, VB, and JS, can be used.
And so on. Of course, the most appropriate programming language is the C (read c sharp) Specially launched by. Net Frmaework. It can be seen as VC and Java
Although MS speaks C # kernel more like VC, I still think it is more like Java. First, it is a surface
The object-oriented programming language, rather than a script, has all the features of the object-oriented programming language, such as encapsulation, inheritance,
Polymorphism and so on. This solves the vulnerabilities of ASP just mentioned. Encapsulation makes the code logic clear, easy to manage, and applies
ASP. Net can separate the business logic from the Html page, so no matter how the page prototype changes, the business logic Code does not have to do anything
Changes; inheritance and polymorphism greatly improve code reusability. You can inherit existing objects to maximize your previous
Investment. C # provides a complete debugging/error correction system like C ++ and Java.
ASP (Active Server Pages) is a WEB application development technology launched by Microsfot in November 1996.
Sequencing language is not a development tool, but a technical framework. It can be generated and executed without the use of Microsoft products.
Dynamic, interactive, and highly efficient applications that occupy servers. Use ASP to embed VBscript, javascript, and other script languages
To HTML, you can quickly complete the website application, without compilation, can be directly executed on the server side. Easy to write and use
This editor can be compiled, such as Notepad. Scripts are run on the server rather than on the client. All the scripting languages used by ASP are
When running on the server, the browser on the client does not need to provide any other support, which greatly improves the interaction speed between the user and the server.
. In addition, it enables more powerful functionality through built-in components, such as using A-DO to easily access the database.
Later, Microsoft launched ASP. NET. This is not a simple upgrade of ASP, but a new generation of dynamic WEB page Implementation System for a WEB Server
Build powerful applications. It is part of Microsoft's new architecture. NET and a combination of ASP and. NET technologies. Provides
Components and event-driven programmable network forms greatly simplify programming. You can also use ASP. NET to create a network service.
Differences between ASP and ASP. NET:
1. Different Development languages
ASP is only limited to non-type scripting language development. You can add ASP code to web pages and client scripts.
The same method causes code clutter.
ASP. NET allows users to select and use a fully functional stronugly-type programming language, and also allows users to use a huge. NET Framework

2. Different Operating Mechanisms
ASP is a programming framework that explains running, so the execution efficiency is lower.
ASP. NET is a compilation programming framework. Running is the library code for the compiled public Language Runtime on the server. It can be used for early binding,
Implement compilation to improve efficiency.
3. Development Method
ASP integrates interface design and program design, making maintenance and reuse difficult.
ASP. NET separates interface design and program design with different files, improving reusability and maintainability.

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.