现在的位置: 首页 > 综合 > 正文

Setting the Scope of COM Objects in ASP Pages

2011年05月25日 ⁄ 综合 ⁄ 共 520字 ⁄ 字号 评论关闭

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

抱歉!评论已关闭.