all groups > dotnet interop > september 2006 >
You're in the

dotnet interop

group:

C# interop with classic asp


C# interop with classic asp elwood.net NO[at]SPAM gmail.com
9/29/2006 2:08:07 AM
dotnet interop:
Hi everyone,
I have a .NET assembly that I'm using from classic ASP pages.
One of the methods of my .NET assembly is returning a string array and
I'm not able to retreive this array from the ASP page. I'm having a
type mismatch error if I try to intercept the array.

public string[] TestSTR()
{
string[] strArray;
strArray = new string[2];
strArray[0] = "Test1";
strArray[1] = "Test2";
return strArray;
}

Any advice?
Thanks in advance for your help.
Elwood.
Re: C# interop with classic asp Gaurav Vaish (www.EduJiniOnline.com)
10/1/2006 12:36:55 AM
[quoted text, click to view]

dim retVal as Array
retVal = classInstance.TestSTR()

should work.
Since the method is not static, you'll need an instance of the class...
How are you trying to access it?


--
Happy Hacking,
Gaurav Vaish | http://www.mastergaurav.com
http://www.edujinionline.com
http://articles.edujinionline.com/webservices
-------------------

AddThis Social Bookmark Button