Recommended: IIS6.0 ASP Error Analysis Event ID Description 0100 Out of memory. The required memory cannot be allocated.
1. Introduction to WebClass:WebClass is a VB component that resides on the WEB SERVER and responds to browser inputs.
For users, an IIS application seems to be composed of a series of HTML pages. For developers,
An IIS application is composed of some special type objects called webclass.
2. IIS Applications and ASP Applications
IIS applications are ostensibly similar to Active Server Pages applications. Both applications display dynamic web sites and both perform their processing on the server rather than on the client. However, each has its own unique advantages.
Active Server Pages is suitable for script developers interested in making web pages, and it provides the unique ability to mix scripts and HTML.
IIS applications are suitable for Visual Basic developers who build web-based applications instead of web pages. IIS applications allow for complex transactions and can be easily accessed by almost any browser or platform.
3. Advantages of IIS Application:
$1Familiar development environment and models. You can use Visual Basic knowledge to add classes, modules, or any Visual Basic ActiveX components to your project, making it easy to debug and write.
The widespread use of $2. It can be supported by most browsers.
$3 reusable parts. Similar to OOP programming. The objects can be accessed from each other.
$4 code is separated from HTML: different from writing ASP applications. Server-side handlers and Client-side programs are separated for easy maintenance and modification.
$5. Customizable event processing, so the writing method is flexible
4. Disadvantages of IIS Application:
.The GET methods in all template files cannot be connected to events in webclass, so the Post method must be used..
.webclass can sometimes error when formatting a template file to send to the browser.
5. The relationship between .asp file and Webclass
ASP objects that a webclass can use include:
? Request—Accept requests from the end user of the browser.
? Response —Send a message to the browser to display it to the user.
? Session — Maintains information about the current user session and saves and obtains status information.
? Application —The administrative status shared by multiple webclass instances.
? Server —Create other objects and determine server-specific properties that may affect the processing of webclass.
6.Composition of Webclass.
Webclass consists of html templates and custom Webitem. (html templates and custom Webitem are collectively referred to as Webitem), of course, it is not necessary to include templates and custom Webitem.
$1. An HTML template file is an HTML page associated with webclass. When a webclass receives a request, it can send the HTML page to the browser for display. The difference between a template and a regular HTML page is that it often contains alternative areas (usually a scope defined with the WC@ tag) that webclass can handle before sending a page to the browser. This allows you to customize your own response.
$2. A custom webitem is a program resource composed of one or more event handlers. These event handlers are called by the browser when the page is loaded or when the user selects an HTML element. These event handlers can generate a response to the browser or pass the processing to another webitem of the webclass.
There can be multiple Webclasses (that is, there are multiple corresponding asp files. Each asp file controls (host) a webclass).
$1. The data exchange between webclasses can be passed through session variables and application variables or directly called another webclass processing event from a webclass -------webitem. (Calling method: .....action =The webclass name called.asp ?WCI=webitem&WCE=wcevent&WCU=URLData or other method).
$2. There are two ways to convert between Webclass.redirect and Set NextItem='webitem'
? Note: The Nextitem property is ignored in the Endrequest, ProcessTag, FatalErrorResponse event.
Share: Instructions for using Adodb.Stream Component: Adodb.Stream has the following methods: The Cancel method is used as follows Object.Cancel description: Cancel the execution of the pending asynchronous Execute or Open method calls. The Close method is used as follows Object.Close: Close