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

posted @ 2010-07-17 19:57  Max Woods  阅读(277)  评论(0编辑  收藏  举报