Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Interop / September 2006

Tip: Looking for answers? Try searching our database.

C# interop with classic asp

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
elwood.net@gmail.com - 29 Sep 2006 10:08 GMT
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.
Gaurav Vaish (www.EduJiniOnline.com) - 30 Sep 2006 20:06 GMT
> 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.

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?

Signature

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


Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.