ASP 3.0 advanced programming (11)

Source: Internet
Author: User
Chapter 4 Server processes and ASP Server objects
Some built-in ASP objects have been studied in the previous chapter. The key objects are Request, Response, Session, and Application objects. Another major object in ASP is the Server object. This chapter focuses on the background knowledge and usage of this object.
Server objects provide a method to expand ASP pages through instances and other external objects and components in Server scripts. In fact, many people think that this object is the main reason why ASP is popular. The introduction of Server objects is of great significance, which means that ASP does not have to provide all the attributes that people need. It can call other applications and components to complete the specified work.
This also fits into the overall goal of building an application consisting of independent objects, rather than building a mega program that consumes hard disk space to do everything. Not only in the computer world, the whole world is evolving towards components and the concept of plug-and-play. Today, when a car or TV fails, technicians or engineers are likely to remove faulty parts and insert a new one. Therefore, the work of vehicle maintenance personnel or television maintenance personnel has become object-oriented.
However, IIS also supports many traditional methods of using external objects and interacting with the server environment. This is a specific exception. These methods are not really an ASP component, but they are usually very useful. Some new features of the Server object have been well integrated with ASP. This chapter briefly reviews these traditional methods and then Introduces ASP Server objects in detail.
The main content of this chapter is:
· Background knowledge and usage of traditional server-side include (SSI) commands.
· Tasks to be completed by the Server object and comparison with SSI.
· How to use Server object instances, external components, and applications.
· How to use the Server object to execute encapsulated scripts or other ASP pages.
· How to use the Server object to manage errors in scripts.
· How to use the Server object to convert HTML or HTTP-compatible formats.
The Server object is part of the error handling process on the ASP page and is new in IIS 5.0 and ASP 3.0. This chapter describes how this object works. This is because there is a separate chapter (Chapter 7th) dedicated to all issues related to debugging and error handling. Therefore, this chapter only briefly discusses error handling methods, and is limited to the processes directly involved by Server objects.
4.1 server processing on dynamic pages
In terms of server processing, ASP is a relatively new technology for generating dynamic Web pages. What does dynamic pages mean? For the moment, we will not consider the progress of client-related functions, nor discuss client scripts, Java applets, Dynamic HTML or ActiveX controls. The dynamic page here refers to the page generated by the server in response to the client request, and the page may be different each time according to the situation.

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.