Note that some samples we place here may be not ALP specific. In many
cases it is more useful to illustrate the usage of the ALP Run-time
library in an abstract way so that the developer can use it not only in
ALP but also in other environments.
If you have encountered problems when using Application or Session
variables to store values from an ADO recordset or similar problems with
other COM objects - this example shows how this depends on the IIS
compatibility level configuration setting.
Such a problem may occur if you use a statement like this one:
Session("some_variable_name") = rst("some_field_name")
where rst is opened ASO Recrodset.
If the IIS Compatibility level for your application is less than 3
the Session variable in above sample statement will be filled with a
reference to the field object and not its value. You must set it to 3 or
above in order the field's value to be extracted (like in IIS).
Download the sample (40k
zip file)
ALP retains default IIS compatibility level of 1 in order to avoid
disturbing legacy ALP applications which may depend on it. Any
application can set higher IIS compatibility level for itself only and
benefit of the improved ALP behavior not disturbing the older
applications that may use the same instance of the ALP engine.