Setting the Scope of COM Objects in ASP Pages

The scope of an object determines which scripts can use that object. By default, when you create an object instance, the object has page scope. Any script command in the same ASP page can use a page-scope object; the object is released when the .asp file completes processing the request. The recommended scope for most objects is page scope. You can change the scope of an object, however, to make it accessible from scripts on other pages. This topic explains how to work with page scope objects and how to change the scope of objects. Using Page Scope Objects An object that you create by using Server.CreateObject or the HTML

原文地址:https://www.cnblogs.com/MaxWoods/p/1779836.html