Home | Advertising Info21 USERS CURRENTLY ONLINE   
   Site Search Contact Us Friday, August 01, 2014  
 
 


 
ASPProtect
User Management Application with web based screens that allow you to manage users.
www.ASPProtect.com
 
ASPBanner
Banner Rotation system. Advertisers can monitor online statistical reports via their web browsers.
www.ASPBanner.com
 
ASP Photo Gallery
Upload an unlimited amount of albums. Set up categories.Image resizing thumbnail creation.
www.ASPPhotoGallery.com
 
ASPClassifieds
Classifieds system. Set up categories. Users can register themselves. Supports picture uploads.
www.ASPClassifieds.com



DISCUSSION ARCHIVES
 
Try a free httpZip trial now and compress for less!


We didn't realize
the site was so popular.

Other Stuff
 

 
 
Active Server Pages ASP ASP.NET .aspx .ascx Web HTML Developer Internet Microsoft Web Services Visual Studio .NET CJWSoft ASPProtect ASPBanner ASPClassifieds



(Advanced)  (Components)  (Database)  (General)  (Vbscript)




ASPProtect

 
Subject: OBJECT in global.asa not instantiated
From: Gail Papke
Date: 10/12/1999 12:21:42 PM
IP: 207.229.149.223



 

I have a problem that objects declared using the <OBJECT> tag in global.asa are not being instantiated. I know that the correct global.asa is running because I have other code in an Application_OnStart procedure that does run. However, when I refer to a declared object in an .ASP file, I get the error "Object required: MyBrowser".

Here is the global.asa:

<OBJECT RUNAT=Server SCOPE=Application ID=oAdmn2000 PROGID="Admn2000.ScsTools">
</OBJECT>
<OBJECT RUNAT=Server SCOPE=Application ID=myBrowser PROGID="MSWC.BrowserType">
</OBJECT>
<SCRIPT Language=VBSCRIPT RUNAT=Server>
Sub Application_OnStart()
set ifile=Server.CreateObject("Scripting.FileSystemObject")
set file=ifile.OpenTextFile("admncoun.txt",1,TRUE)
lcCount=file.ReadLine
if lcCount<>"" then
application("Count")=CInt(lcCount)
else
application("Count")=0
end if
file.Close
set ifile= nothing
set file = nothing
End Sub
</SCRIPT>

Here is the ASP code to use an object, which generates the "Object required" error:

browser is <%=myBrowser.browser%>

I know the global.asa runs because the admncoun.txt file gets created. Any clues as to why I cant refer to the objects?

Gail Papke
Second City Software


 

   Active Server Pages Rule The World
Contact Us  
All artwork, design & content contained in this site are Copyright 1998 - 2014 PowerASP.com and Christopher J. Williams
Banner ads ,other site logos, etc are copyright of their respective companies.
STATS Unless otherwise noted - All Rights Reserved.

Active Server Pages asp search engine active server page asp application components tutorial CJWSoft ASPProtect ASPBanner ASPClassifieds www.aspclassifieds.com, www.powerasp.com,www.cjwsoft.com,www.aspphotogallery.com,www.codewanker.com,www.aspprotect.com,www.aspbanner.com