Help > Web Development > Object Reference > Getting Started > ASP > Global.asa
<a name="kanchor206"></a>Global.asa
Configuring your global.asa file

At the top of your global.asa, you should add the following line:

<!-- METADATA TYPE="TypeLib" UUID="{B1539EF3-3287-4580-A99D-57CF4B688AC6}" -->

This instructs the ASP pages to include the ISYS:web.dk (admin) Type Library. By adding this line, you can use the constant values by name, such as doBeforeHit and doAfterHit, without having to use their literal value.

If this line is not present and you try to access the constants, you may get strange results, especially if you do not set OPTION EXPLICIT.

It is recommended that you store the ISYSAsp object in application scope. This will cache objects and reuse them, giving you optimal performance. To create the ISYSAsp object in Application Scope, add the following:

set Application("ISYS") = Server.CreateObject("ISYS.ISYSAsp")

You may also store the ISYSIndex object in application scope, this is useful if you are searching only one index and do not wish to dynamically chain multiple indexes together. You can store the index object by adding the following line:

set Application("ISYSIndex") = Application("ISYS").OpenIndex("c:\isysindex")