Update list item using CAML RRS feed

  • Question

  • Hi I have created event receiver which updates custom list on different site.


    I would like to use CAML to update that list as I have a problem with LINQ and SPMetal Entities.


               string strSite = "http://spserver/sites/subsite/";


               ClientContext context = new Microsoft.SharePoint.Client.ClientContext(strSite);

               List list = context.Web.Lists.GetByTitle("MyList");



               SPQuery caml = new SPQuery();          

               int myNumber = 86;

               caml.Query = @"<Where><Eq><FieldRef Name='MyNumber'/><Value Type='Number'>" + myNumber + "</Value></Eq></Where>";


    I kind of stuck here, could you tell me how can I iterate through my results and update let’s say title in my list?

    Thanks for help

    Monday, November 28, 2011 11:58 AM


All replies