2 global.asp questions

B

bbxrider

1. how to determine the 'progid' parameter in the /oject tag for both
session and application tags, eg,
<object runat="server" scope="application" id="web1" progid="web1">
</object>

2. i want to invoke the meta data for ado in my global.asa, so it will there
for all the sessions:

<!--METADATA TYPE="TypeLib" NAME="Microsoft ActiveX Data Objects 2.1
Library" UUID="{00000201-0000-0010-8000-00AA006D2EA4}" VERSION="2.5"-->

is this then coded within the application 'object' tags, see 1, or is it
coded in the application_onstart subroutine??
 
A

Aaron Bertrand - MVP

1. how to determine the 'progid' parameter in the /oject tag for both
session and application tags, eg,

That really depends: what object are you trying to put into the session /
application context?
2. i want to invoke the meta data for ado in my global.asa, so it will there
for all the sessions:

<!--METADATA TYPE="TypeLib" NAME="Microsoft ActiveX Data Objects 2.1
Library" UUID="{00000201-0000-0010-8000-00AA006D2EA4}" VERSION="2.5"-->

is this then coded within the application 'object' tags, see 1, or is it
coded in the application_onstart subroutine??

I believe you just put it at the top of the page (not inside any routine).
It will be available to all sessions.

And straighten up the version information! Do you want 2.1 or 2.5 ????????
 
B

bbxrider

thanx again aaron,
so the object could be anything??? like a basket of classes that i need for
my website??
and i guess you mean objects and version both need to be the same, will
change that, but just fyi,
i invoked the metadata with the 2.1 and 2.5 and it worked ok for the 3
constants i used, guess thats
just a coincidence
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,777
Messages
2,569,604
Members
45,234
Latest member
SkyeWeems

Latest Threads

Top