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!)