SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a custom visual web part that contains a SharePoint AttachmentsField control.

<SharePoint:AttachmentsField ID="AttachmentsField1" ControlMode="Edit" ItemId="33"
EnableViewState="true" FieldName="Attachments" runat="server"/>

It renders the attachments correctly, and when I click on each attachment the documents are opened as desired. However, the "delete" link next to each attachment when clicked prompts with a dialog box requesting confirmation of the attachment deletion.

I click OK, and the attachment is removed from the list, however the attachment still exsist, and once the page is refreshed the attachments still remain.

Any insight would be appreciated.

share|improve this question

Your Answer


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

Browse other questions tagged or ask your own question.