Hi !
I have an Usercontrol.ascxusing .Net 3.5 LINQ, wich compiled in VisualStudio 2008 works ok. But when i putit inside a sharepoint webpart so sharepoint compile it inthefly (prattice whic i used a lot), gives this error:
FOUserControl.ascx.cs(86): error CS1002: ; expected
Here's the piece of code:
84:if (active)
85:{
86: var res = from ts in ctx.TimeSheetSemanal
87: where ts.Recurso.Manager.Nome.Equals(userName)
88: select new { ts.Recurso,ts.Recurso.Activo };
89:}
By the way, I'm using the same machine for VisualStudio 2008 as well as for Sharepoint Server 2007.
Thanx in advance for any help !
Marco