Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Return ArrayList
Message
De
23/07/2003 10:07:32
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
XML
Titre:
Return ArrayList
Divers
Thread ID:
00812765
Message ID:
00812765
Vues:
40
Hi. Is it possible to know how to return an ArrayList from a Webmethod.
This is the code I've done but it doesn't work

[WebMethod]
public ArrayList testing()
{
ArrayList al = new ArrayList();
al.Add("qqq");
al.Add(2);
return al;
}

I also tried :
[WebMethod]
[XmlInclude(typeof(ArrayList))]
public Object testing()
{
ArrayList al = new ArrayList();
al.Add("qqq");
al.Add(2);
return al;
}

thank you in advance.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform