Calling a asp.net object from asp, returns Invalid procedure call or argument

I had to pass an object from asp to asp.net component but every time it returned an
'Invalid procedure call or argument:object name'

I found that when passing objects from asp to .net components use the below method :

oObject.Save(oObjectToBeSaved, errMsg) -- returned error message

oObject.Save((oObjectToBeSaved), errMsg) -- works successfully.

Also, the .net componenet which accepts parameters should have its signature set as ByRef..

Comments

Popular posts from this blog

Drupal - How to display webform node in a block?

Error when Installing SQL Server 2008 R2 Management Studio

Technical Team Lead Interview Questions