Problem and Solutions

1

Like

How to pass ArrayList Object into web method of web service


Hi,

I want to pass ArrayList object into WebMethod of WebService,

I tried many options but did not help me.

Please help me to solve this problem,

Thanks
Posted by: James
On 31 Mar 2012 | Views: 2724 | Categories: Web Services
Solutions(2)
 On 05 Apr 2012 06:20:43 AM
Hi James

we can use arrayList.ToArray() to convert ArrayList to object[].

We can also use arrayList.ToArray(Type) to convert ArrayList to object[].

arrayList.ToArray(Type) is good way to passing ArrayList into web method of web service
 On 11 Apr 2012 10:13:26 PM
Thanks Michael

It working fine
Post your Solutions  

 

Other lins

.Net Techies
Other lins