home navigator pointer resources navigator pointer asp tips navigator pointer object tag
The definitive ASP tips page
tips menu | printable single page version

Note: this is my old ASP tips page and is no longer supported. See the new Visualize web site..

ASP Coding for Performance - Consider using <OBJECT> tags

If you are not sure whether an object is actually going to be used or not in a script, then use the <OBJECT> tag instead of Server.CreateObject(). This will declare an object without actually instantiating it (ie instead it will wait until it is referenced, termed 'lazy evaluation'). Another benefit is they use CLASSIDS, which eliminate name collisions due to their uniqueness.

 

DISCLAIMER: Note these pages are a free resource for anyone wishing to reference them. Although every care is taken to ensure their correctness, the author takes no responsibility for any errors or problems that may occur through their use, or indeed misuse. These pages are copyight of Dave Clarke, Visualize Software Ltd 1997-2000 (all rights reserved).


 


© Copyright Dave Clarke, 1996-2008