Introduction of Microsoft New Generation development Technology asp+

Source: Internet
Author: User
Tags object execution final new features new set version versions web services
asp+| Microsoft | Microsoft asp+ Introduction
Despite ASP3.0 ink, Microsoft has been gearing up to develop next-generation server-side programming technology. In the next three sections, we'll make a rough introduction to this new product, called asp+. This article is mainly about experienced ASP developers, Provides some concepts for you to decide whether to migrate to asp+.
Asp+ is designed to be compatible with earlier versions of ASP, with only a few minor differences in environmental requirements. More specifically, asp+ can be installed with ASP 3.0 on Windows2000. This way, you can continue to provide existing ASP services while testing the asp+. When everything is ready, switch to asp+ instead of installing a test server.
Although it is possible to simply convert the original ASP application to asp+, the benefits from the new version are not much. Asp+ has many new features, such as easier to use, more powerful, more efficient, and so on. But to really play a role, you need to understand how asp+ works.
On July 11, 14th, at Microsoft Developer's Conference 2000 in Otland, Florida, Microsoft released the Preview version of asp+, allowing developers to experience less code to build dynamic sites.

Evolution of ASP
The history of ASPs is not long, starting in 1996, and then rapidly developing into a mainstream development environment in the Windows environment. In addition, there are simulation environments developed by Third-party vendors, such as chilliasp, on other platforms.
Dynamic server-side WEB programming
Traditionally, dynamic pages are generated by server-side executable programs. The standard Web server interface is called CGI, and the basic principle is to have an executable program get the information from the client and then collect the output information to generate the return page (html,script code, text, etc.), Finally sent to the client. Then there are interpreters such as Perl, and programmers can simply write some macro code to let the server interpret the execution.
Microsoft ISAPI Technology
Microsoft has launched another tool with IIS: ISAPI (Internet Server application Programming Interface), unlike CGI, where ISAPI allows the invocation of dynamic-link libraries (DLLs). Many Microsoft developers have been ISAPI. Another short-lived product called Dbweb, provides some degree of interactive data query, filtering, formatting functions.
The second generation development tool called IDC (the Internet Database Connector) has a slight improvement in the development environment. Not only because it is faster and more efficient than dbweb, but also because it is more convenient to use. IDC introduces the concept of templates to make it easier for programmers to build applications on this basis. Each page IDC uses two files. The query file contains simple macro statements that define methods for obtaining data from the database. It's actually SQL description plus configuration information.
{Query File GETUSERLIST.IDC}
Datasource:globalexampledata
Username:examples
Password:secret
Template:getuserlist.htx
SQLStatement:
+ SELECT DISTINCT UserName
+ from person order by UserName;

The server executes this file to obtain the result set, and then calls the template file

{Template file Getuserlist.htx}
...


User Name:





...
Template file is basically a common Web file, including HTML, text and other parts, but with some enclosed code, these code has the basic syntax, there is a simple programming structure, already has some prototype of ASP.
Version of ASP
At the beginning of 1996, Denali (ASP's development code) released a 0.9beta version, creating a storm in the field of Web development. Web pages have become so simple and powerful that the accompanying series of components provides more advanced functionality, with new ADO (ActiveX Data Objects) technology. Creating dynamic Web pages is like a joke.
The final release ASP1.0 is published as a IIS3.0 component. The bundling with ADO technology is undoubtedly one of the main reasons why ASPs are popular. Programmers can open, access, and manipulate databases almost as freely as they want through the script.
In 1998, Microsoft introduced ASP2.0 as part of the WindowsNT4 Optoin Pack. The main difference from ASP1.0 is that ASP2.0 supports calls to external components. In this way, an ASP application can run components in a separate memory space. The introduction of MTS (Microsoft Transaction Server) also attributed the operation of the component to the transaction process.
Windows Watts, COM + and ASP 3.0
Early this year, WINDOWS2000 launched, including IIS5.0 and ASP3.0. Aside from some minor improvements, the main difference is in COM's operating mechanism. In Windows2000, Microsoft incorporated the core COM runtime into MTS and created COM +. Make the use of components more convenient, the entire operating platform more stable, more scalable, more efficient.
IIS5.0 does not change much in the interface, but at the bottom, instead of using COM + Component Services, it provides a better component-running environment, including that each component can have its own separate process.
Asp+ and next-generation Web services Framework
The underlying structure of asp+ is quite different from the previous version of ASP, although déjà vu is seen from the programmer's development interface. Asp+ is completely component-based, and completely modular. Each page, part, and HTML element you use may be a separate running component. The new operating environment will be automatically managed to coordinate the operation of the system. Programmers can build a powerful application system based on the development style of the micro-unit.
Object-oriented asp+ provides an extension of the environment. Developers can add and expand the application environment by adding components or inheriting the basic classes of the original component.
Next Generation Web Services framework
Clearly, COM + constructs the basic framework for operating system operations. As a new set of operating environments, Asp+ provides support for various types of applications in Widnows. This framework is also Microsoft NGWS (Next Generation Web Services) The key. Once you install the framework, asp+ becomes a part of it. The framework also supports other server-side programming technologies, such as new component management services, building executable applications and Windows services, performance statistics APIs, event log APIs, and more.
By adding new and enhanced distributed services, we are now using to create reusable and reusable COM + modules. These new features include:
A set of unified and rich programming library.
A secure and multilingual runtime engine.
Simple creation, development, and maintenance.
Enhance the scope of application of distributed applications.
Investment in the protection of existing software and training.

Here's a step-by-step look at these features.
What is the NGWS architecture?
The integration of ASP into the operating system is very different from earlier versions of ASP, and it will be a plug-in for the operating system. Until now, ASP is through the name of ASP. The ISAPI dynamic link Library of the DLL is responsible for interpreting the operation, or it can be run as part of some new system files and ASP user component packets.
However, the most important thing to note is that the architecture does not exist for the sake of asp+, but it can support all applications based on Windows. The above chart shows how the architecture supports asp+ applications.
The NGWS architecture provides an object-oriented class and component for running the code execution engine and a set of application. He also acts as a layer between the system kernel and the user interface. You might ask: isn't it more convenient to talk directly to a system or service, and why do you want this layer? The reason is that we can make the best use of the operating system and use a standard approach to making development faster and simpler. In today's highly competitive business world, this is a necessary demand.
In order to achieve this goal, many features of the architecture have been introduced. These features include automated memory defragmentation, a rich, reusable object library for most common tasks, and enhanced security performance. Finally, it is very important for network applications, especially for Internet applications.
The Common Intermediate language.
The greatest contribution of the NGWS architecture is to provide a neutral operating environment. All code, regardless of the source code in any language, is automatically compiled into an intermediate pseudo code (IL), whether it is reloaded or the first time it is executed. The schema then produces the final 2 code and executes it. The compiled pseudocode will always be used until the source code is changed. As indicated above, all buffered versions of the code will be invalid and deprecated. )
Therefore, whether you use VB, C #, Perl, or any other language that can be supported, direct code can be written in the same way. and buffered binaries can be as efficient and compatible as the Run-time library.
**c# is a new language developed by Microsoft for the next-generation Web services architecture and asp+, and he has the high efficiency and vb,jscript of C + +. **
One of the features is the ability to invoke another language from one language and even to inherit and modify objects developed by another language. For example, in the VB development environment, you can inherit, add attributes or methods, overload existing methods and properties of an object developed by the C # language. In C # We have actually applied many of the new features of the architecture.
As a result, the new architecture introduces a real multi-language platform to develop a wide variety of applications. This new feature is aimed directly at the current majority of distributed applications in the field of open

[1] [2] Next page



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.