Asp, Asp. Net, and AspAsp. Net

Source: Internet
Author: User
Tags what is asp

Asp, Asp. Net, and AspAsp. Net

1. What is Asp?

ASP is the abbreviation of Active Server Page. It is an application developed by Microsoft to replace CGI scripts. It can interact with databases and other programs and is a simple and convenient programming tool. ASP is not only easy to use, but also easy to access various databases through ADO. In addition, it has excellent scalability. The format of ASP Webpage files is. asp. It is often used in various dynamic websites.

1.1: ASP is a programming tool used to create web pages.

1.2: similar to the combination of HTML, SCRIPT, and CGI, but its running efficiency is higher than CGI, and its programming is more convenient and flexible than HTML, program security and confidentiality are far better than SCRIPT.

2. What is Asp. Net?

Asp. Net is an extension of Asp and is also a development tool for server applications.

3. Differences between Asp and Asp. Net:

The biggest difference between ASP. Net and ASP is the conversion of programming thinking, not just the enhancement of functions. ASP uses html, a mix of scripting languages such as VBS and JS, and those scripting languages are weak-type and Structure-oriented programming languages, rather than object-oriented, this obviously produces the following problems:
3.1: the code logic is chaotic and difficult to manage: Because ASP is a mixed html programming language, it is hard to see the logic relationship of the code, and as the complexity of the Program increases, it makes code management very difficult, and even exceeds the management capability that a programmer can achieve, resulting in errors or such problems.
3.2: poor code reusability: Because the code is structured-oriented and mixed with html, you may need to modify the page prototype and the entire program, not to mention code reuse.
3.3: potential errors caused by weak data types: although it is easier to use a weak data-type programming language, the chance of errors 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 done through components. This is far inferior to PHP/JSP, the second is the lack of complete Error Correction/debugging functions, which is similar to ASP/PHP/JSP.

3.4: So what are the improvements to ASP. Net?
ASP. net is free from the disadvantages of ASP's scripting language. Theoretically, any programming language, including C ++, VB, and JS, can be used. Of course, the most suitable programming language is MS. net Frmaework specifically released C (read c sharp), it can be seen as a mix of VC and Java, although MS speak C # kernel more like VC, but I still think it is more like Java. First, it is an object-oriented programming language, rather than a script, so it has all the features of object-oriented programming language, such as encapsulation, inheritance, polymorphism, etc, this solves the vulnerabilities of ASP just mentioned. Encapsulation makes the code logic clear, easy to manage, and applied to 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 need to be modified. Inheritance and polymorphism greatly improve the reusability of the Code, 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. It is neither a programming language nor a development tool, but a technical framework, without using Microsoft products, you can write its code to generate and execute dynamic, interactive, and efficient server-occupying applications. With ASP, You can embed VBscript, javascript, and other scripting languages into HTML to quickly complete website applications. Without compilation, you can directly execute them on the server. It is easy to write and can be compiled using a common text editor, such as Notepad. Scripts are run on the server rather than on the client. The script language used by ASP is run on the server. The browser on the client does not need to provide any other support, this greatly increases the interaction speed between users and servers. 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, used for building powerful applications on a WEB server. It is part of Microsoft's new architecture. NET and a combination of ASP and. NET technologies. Programmable network forms based on components and events are provided, greatly simplifying programming. You can also use ASP. NET to create a network service.
3.4.1: different development languages
ASP is only limited to non-type scripting language development. The method for adding ASP code to web pages is the same as that for adding code to client scripts, leading to 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.
3.4.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. You can use early binding to implement compilation to improve efficiency.
3.4.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.

4. Asp. Net development history:

Asp> XSP> Asp +> Asp. Net

Asp. Net and Winform are called implementation technologies, while the development languages are C # and VB. Net. The same technology can be implemented in different languages. The correct statement is that the project is developed in the C # (...) language and implemented using Asp. Net Technology (from instructor CJ's book)

 

 

 

Related Article

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.