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 / October 2005

Tip: Looking for answers? Try searching our database.

How can ASP page call a C# method using "ArrayList" parameter???

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
sd - 04 Oct 2005 23:19 GMT
QUESTION:   How can my ASP page - which uses language="VBScript" - pass a
"System.Collections.ArrayList" object - as a parameter - to a C# method in
the middle-tier ???    
----- Is it possible at all?     - if not, what work-a-round is there?

I have no issues passing "string" parameters successfully to other methods
in the same "middle-tier" - i.e., C# - object...

It just seems to be the "ArrayList" parameter that is at issue.

Note also that I can easily create, manipulate, and display the contents of
a System.Collections.ArrayList within the ASP page itself (i.e., via
"response.write", etc).

But, when I do a "createObject" and attempt to invoke the method that
requires the ArrayList parameter, I get an error: "Microsoft VBScript runtime
error '800a0005' Invalid procedure call or argument"

Am I required to do something differently in order to pass this
"System.Collections.ArrayList" object - as a parameter?

Again, I have no issue when passing regular "string"  objects to methods in
the same "middle-tier" object (again, csharp)

Thanks for any help.

sd

IMPORTANT[?]: my environment is sort of a hybrid of ASP (*not* ASP.NET) with
a .NET supported middle-tier (i.e. uses C# objects)...

(FWIW - I have looked up and down the internet for information on this
issue, but, to no avail... Feel free to let me know if I am characterizing
the problem incorrectly - thx!)
John Kortis - 22 Oct 2005 13:41 GMT
I'm not sure what you are trying to do in either tier.
Do you need to use the list in the GUI, ie add, edit, modify, list, search,
sort, etc.

There are quite a few techniqiues to use once this question is answered.

Remember the ASP page is stateless and you must utilize mechanisms to
maintain the state between trips.

Do you have snipets of what works and doesn't?

john

> QUESTION:   How can my ASP page - which uses language="VBScript" - pass a
> "System.Collections.ArrayList" object - as a parameter - to a C# method in
[quoted text clipped - 30 lines]
> issue, but, to no avail... Feel free to let me know if I am characterizing
> the problem incorrectly - thx!)

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.