Use below method to delete attachment of specific list item.
public void DeleteAttachment(int id,string fileName)
using (SPSite site = new SPSite("http://SiteCollectionURL"))
using (SPWeb web = site.OpenWeb())
SPList list = web.Lists["MyListName"];
SPListItem delItem = list.GetItemById(id);
SPAttachmentCollection files = delItem.Attachments;
To query SharePoint List or Document Library in specific Folder “ FolderServerRelativeUrl ” as part of the CAML Query Code Snippet ...
Recently, I stumbled upon a situation where I had Calendar list and I had provided custom save and cancel button. In List setting I had kep...
In order to call a web service in sandbox environment following steps should be followed. Note: Assuming you already have c...