Quantcast
Channel: pasar array a webmetohd
Viewing all articles
Browse latest Browse all 5

pasar array a webmetohd

$
0
0

Hola con todos,

Dado esto:

 

   $.ajax({
    type:"POST",
    url:"WFMantGeneral.aspx/SelectUnits",
    data:"{ARRAY}",
    contentType:"application/json; charset=utf-8",
    dataType:"json",
    success: WriteUnit,
    error: ShowLoadError   
   });

 

Existe alguna manera de hacer esto data:"{ARRAY}", es decir enviar un array de datos al webmethod y en el webmethod recibirlo en una coleccion list<> así:

 

 

  [WebMethod]publicstaticint Funcion(List<UbigeoBE> objListUbige)
  {if (HttpContext.Current.Session["objListUnidad"] != null)
   {
    objListUbigeo = objListUbigeo.FindAll(delegate(UbigeoBE pObjUbigeoBE)
    {return (pObjUbigeoBE.CodDpto == pCodDpto);
    });
   }return 1;
  }
entonces es eso posible???

 


Urgente

Viewing all articles
Browse latest Browse all 5

Latest Images

Trending Articles





Latest Images