ASP Classic 3.0 Support
Support for ASP Classic 3.0 is provided by an ISAPI extension
(Internet Server Application Programming Interface), named
asisapi.dll. The script execution is
handled by Microsoft Windows Script technology. This technology has
some limitations, resulting in some limitations for ASP Classic
3.0. DWebPro provides also some additional features to ASP Classic
3.0 that extend the original Microsoft ASP support. You can read
more details about these limitations and improvements below.
Due to the technical limitations of the Microsoft Windows Script technology script execution for support of ASP Classic 3.0, the following limitations are in place:
-
The execution of scripts with different languages cannot occur at the same time (for example, in the same ASP page). A beta version of ASP Classic 3.0 support with multilanguage support is available in the
aspisapi\betafolder. To try it, copy theaspisapi\beta\aspisapifile into thedeploy\engine\aspisapifolder. -
Only the VBScript and JScript scripting languages are supported.
-
The
Session.LCIDproperty has no effect when using JScript. -
Some properties of the
ASPErrorobject do not have correct values. For example:-
ASPError.FileandASPError.Lineare not precise -
ASPError.Number,ASPError.Description, andASPError.ASPDescriptionare based on Microsoft Windows Script errors -
ASPError.ASPCodeandASPError.Categoryare empty
-
- In the
GLOBAL.ASAfile, theServer.MapPathmethod must be used with virtual paths (paths relative to the document root). Note that theGLOBAL.ASAfile must be placed in document root (deploy/www) folder.
Here it is the the additional methods and objects included in the DWebPro ASP Classic 3.0 support:
| Method | Use |
|---|---|
Server.FileExists(Filename: string): boolean;
|
This method returns a true if
the indicated Filename exists. |
Server.DirectoryExists(Directory: string):
boolean;
|
This method returns a true if
the indicated Directory
exists. |
Server.EjectCD():
boolean;
|
This method ejects the CD. |
Server.LockCD():
boolean;
|
This method locks the CD. |
Server.UnlockCD():
boolean;
|
This method unlocks the CD. |
Server.IsInternetConnected(): boolean;
|
This method returns a true if there is an Internet connection available. |
Server.MachineID():
string;
|
This method returns a 32 character string containing a unique machine ID. |
Server.Encrypt(Value,
Key:string): string;
|
This method enables you to encrypt the string Value against the key Key using the AES algorithm. |
Server.Decrypt(Value,
Key:string): string;
|
This method enables you to decrypt the string Value against the key Key using the AES algorithm. |
Server.ReadBinaryFile(Filename:string): binary
array;
|
This method enables you to read the contents of a file into a
variable. An example of its use is shown below:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<%
Response.ContentType = "image/gif"
Response.BinaryWrite(Server.ReadBinaryFile(Server.MapPath("images\dwebpro_box.gif")))
Response.End
%>
|
Server.NewMail():
Mail;
|
This method returns an instance of Mail object (as CDONTS.NewMail does). See The Server.NewMail Object
topic for more information about sending emails from ASP Classic
3.0. |
Server.Registry:
Registry;
|
This method enables you to manipulate the system registry. See The Server.Registry Object topic for more information about registry manipulation from ASP Classic 3.0. |
Request.Upload;
|
This method enables you to handle file uploads using multipart/form-data forms. See The Request.Upload Object topic for more information about file upload in ASP Classic 3.0. |
DWebPro ASP Classic 3.0 support also enables you to encode the scripts source code using the DWebPro Encoder to protect your intellectual property. For more information on the DWebPro Encoder, refer to the DWebPro Encoder Software topic.
For additional information on configuring ASPISAPI, refer to The aspisapi.ini Configuration File topic.


