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; }
Urgente