Basic article: Understanding ASP built-in objects and components

Source: Internet
Author: User
ASP built-in Application,asperror,request,response,session,objectcontext,server and so on seven objects (object), and each object has its own properties, method (method), collection (Collection), or event. Now let's introduce the meaning of these nouns so that we can better understand the ASP's built-in objects:


object is like a variety of objects we see in our daily lives, such as computers, refrigerators, automobiles, mobile phones, and so on, and objects may be composed of many objects, such as: The computer is an object, and the computer is made up of hard disk, CPU, memory, display card and so on.

The property is used to describe the attributes of an object, for example, a computer is an object, and the computer's level, the manufacturer, and so on, can be used to describe the computer's properties, and for example, response is an ASP-built object, And it has a property isclientconnected can be used to describe whether the browser is still connected to the server. To access the properties of an object, you can write objectname.property, such as: Response.isclientconncetion.

method is used to perform an object's action, for example, the computer is an object, and the boot, shutdown, execute the application, scan the hard drive is the method of this object; For example, response is a built-in object, and it has a method called Write, You can display the specified information on the browser side. To access the object's methods, you can write Objectname.method, such as Response.Write.

"Set" (Collection) refers to a group of "values" (value), which is too abstract, for example, when the viewer enters the page form data and presses the "submit" button, The name of the form field and the data entered by the viewer are passed to the Web server in a form collection. For example, in the QueryString collection of an ASP object, to get the value of a username field or Userage field, Can be written separately as resquest.querystring ("username") and resquest.querystring ("Userage")

"Event" is in some cases a specific signal warning you, for example, if you have a car, and when you start the car without closing the door, the car will make a sound warning you, this is an event. Also, for example, the session is an ASP built-in object, It generates Session_OnStart and Session_OnEnd events, respectively, when the user activates or ends the browser.
   AD Rotator Components

Advertisement Wheel Display component

Properties: Border,clickable,targetfarms

Method: GetAdvertisement

   FILE Access Component

File Manipulation Components

FileSystemObject objects

Methods: CreateTextFile, Opentestfile, CopyFile, DeleteFile,

FileExists, Getextensionname, GetFile, GetFileName, MoveFile,

CopyFolder, Getparentfoldername, GetSpecialFolder, GetTempName,

Getdrive, GetDriveName, driveexists, drives,

Getabsolutepathname, Getbasename.

   CONTENT Linking Components

This component is primarily used to manage hypertext links between Web sites

Methods: GetListCount, GetNextURL, GetPreviousDescription,

GetListIndex, GetNthDescription, GetPreviousURL,

GetNextDescription, GetNthURL ...

   Brower Capabilities Components

Browser Performance Components

Properties: Browser,version,majorver,minorver,beta,platform, Activexcontrols,backgroundsounds,cookies,frames,

Javaapplets, TABLES,VBSCRIPT,JAVASCRIPT,CDF ...

Establish a method

Set Browertype = Server.CreateObject ("MSWC. BrowserType ")

The following three components are not IIS/PWS in the ASP from the need to download the Microsoft website

PAGE Counter Component

PERMISSION Checker Components

REGISTRY Access Components

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.