ASP 3.0 Advanced Programming (VII)

Source: Internet
Author: User
(4) Delete virtual applications
Clicking the Remove button does not really delete the entry in Internet Services Manager. Instead, you convert an existing virtual application to a virtual directory. This directory has a "folder" icon with a blue ball, which means that this is not a real directory in the Web site, but a redirect to another folder on the disk. It is accessed in the same way as the virtual application that created it (that is, using the same URL), but not as an application. In other words, it does not support its own application object, but rather inherits the application object of the default Web site or the Application object of another application in the parent directory of that directory.
To remove a virtual application, simply right-click the object in Internet Services Manager and select Delete from the menu that pops up.
(5) What the application stores
The global storage space provided by the ASP Application object can be used to store the following:
· Simple variables, such as strings and numbers (stored as variants, similar to ASP script variables).
· Variant type array, one-dimensional or multidimensional.
· A variable reference to a COM object instance (of type in a variant).
(6) Definition of variant
A variant is a unique variable type that is provided for ASP (and Internet Explorer) in the VBScript scripting engine, similar to the variant of the data type defined in VB and VBA. Compared to most commonly used basic data types, such as strings or integers, the variant provides many uses, although it does not allow the storage unit to store variables most efficiently and requires additional processing.
From within the Variant data type stores numeric values as separate subtypes. It handles implicitly type conversions automatically, allowing the following code to be used:
strstring = "30"
Intinteger = 12
Response.Write strstring & Intinteger ' writes 3012 in the resulting page
Response.Write strstring + Intinteger ' writes in the resulting page
Implicit data type conversions allow you to ignore HTML values in Guangxi and list controls are strings, and you can use them as numbers if necessary (assuming that the string does contain a valid number). You can also do something else randomly, such as using the Len method of VBScript to check the length of a value that does not exist in the Request.Form collection. The Len function attempts to convert the value of a call from Request.Form to a string. If the value is lost, return null (EMPTY) and convert to a string with "", so the length is zero.
(7) VBScript data types and conversions
You can also make explicit data type conversions. In VBScript, the VarType method returns an integer indicating the currently saved subtype of the variant:
Select case VarType (varmyvalue)
Case 0:response.write "Empty (uninitialized)"

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.