I am new with VID and need some help. I have a VB component that returns some data into a record set on an ASP page. I want to display this data in a text area. How would I do this? Thanks.
Thanks for the info. You said in that thread (Thread117-64416), that you created a Session recordset. I have been trying to do that and I have not been successful. This is what I have done:
'set my session record set object
set Session("rsGet_Details" = Server.CreateObject "ADODB.Recordset"
'set object for VB dll
set rs1 = Server.CreateObject("PeoplePC.usp_getDetails"
'pass in values and connection then set my session
'record set = .get_details, which is an ADO record
'set created in the VB COM object.
with rs1
.Detail_ID = null
.CONNECTION = dbconn
set Session("rsGet_Details" = .Get_Details
end with
I am getting this error:
ADODB.Command error '800a0e7d'
Requested operation requires an OLE DB Session object, which is not supported by the current provider.
Looks like my problem is with my VB COM object not my VID code. I am trying to pass an active connection to a ADO command and it does not like it, not sure why but.... sorry for the confusion....
The recordset in the session variable was just an example. You should avoid using the session object in this way. Instead you would set the Recordset DTC recordsource to the output of your COM method.
Yes, you need a disconnected recordset - with client cursor and batch-update etc. Indeed, you will get used to this type of processing, particularly if you use MTS to 'host' your COM objects. If you use MTS, you may find it easier to upgrade the DLL (releasing DLL locks in IIS can be tricky).
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.