Take the 2-minute tour ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.
ClientContext cl = new Microsoft.SharePoint.Client.ClientContext("http://" + "mysharepoint" + "/" + SubWeb);
System.Net.NetworkCredential cred = new System.Net.NetworkCredential("myuser", "mypass", "ntuni");

cl.Credentials = cred;

ListItemCollection result;
List qrtList = cl.Web.Lists.GetByTitle(QRT_LIST_NAME);
result = qrtList.GetItems(CamlQuery.CreateAllItemsQuery());
cl.Load(result);
cl.ExecuteQuery();

foreach (ListItem item in result)
{
    if (item.FieldValues["UniqueId"].ToString() == QrtId)
    {

        item.FieldValues["R_x00e9_ponse"] = r.ResponseTxt;
        item.Update();
        qrtList.Update();        
    }
}

cl.ExecuteQuery();

My object doesnt update once i visite the sharepoint for some reason. This is wraped around a try catch and nothing gets caught. Halp ? Thanks !

ps: Adding new item works fine.

share|improve this question
add comment

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.