Hi,Everybody
Can somebody help me find out what 's wrong with the code?
Can I pass a .NET type as a parameter to another .NET type's method? or how?
see below:
=================================================
.NET Server C# code:
namespace XYZ.BusinessLogic
{
public class Document
public void Update(XYZ.Model.DocumentInfo docInfo,int userid)
{
...
}
}
----------------------------------
ASP Client VBScript Code:
Set Doc=Server.CreateObject("XYZ.BusinessLogic.Document")
Set DocInfo=Server.CreateObject("XYZ.Model.DocumentInfo")
UserID=1
DocInfo.Title="Test"
...
Doc.Update DocInfo,UserID
-----------------------------------
Error Message I got after I run the asp page:
Error Type:
Microsoft VBScript runtime (0x800A0005)
Invalid procedure call or argument: 'Doc.Update'
==================================================
Thank in advance
Lidong
Yiru Tang - 29 Jul 2003 22:49 GMT
I am not very familiar with VBScript. But an object in managed world are
actually reference types. Is there a way to pass in an object pointer to
the method in VBScript?
--------------------
>From: "Lidong Cheng" <LidongCheng@hotmail.com>
>Subject: What is wrong with the code to access .NET Assembly from ASP page?
[quoted text clipped - 46 lines]
>
>Lidong