Author: Berets | Posted on: 4/16/2010 11:06:13 AM | Views : 244

Hi, i'm new in asp.net
i have a problem, i created  a WebService:
 
namespace FinitenessEVO { /// <summary> /// Summary description for WebService /// </summary> /// [WebService(Namespace = "http://tempuri.org/")] [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] [ScriptService] public class MyWebService : System.Web.Services.WebService { [WebMethod(EnableSession = true)] public RICHIESTE RecuperaRichiesta(int Anno,int Numero) { var ric = from n in _GetContext().RICHIESTE where n.reqann == Anno && n.reqnum == Numero select n; return ric.First(); } private FinitenessEVOEntities _GetContext() { return (Session["context"] as FinitenessEVOEntities); } } }

Go to the complete details ...