Attachments view for DataView webpart

Use this for Single List Item View:

<SharePoint:AttachmentsField ControlMode=”Display” EnableViewState=”true” FieldName=”Attachments” runat=”server”/>

Use this for Multiple List item View:

<SharePoint:AttachmentButton ControlMode=”Edit” Enabled=”true” runat=”server” Visible=”false”/><SharePoint:AttachmentsField ControlMode=”Display” EnableViewState=”true” FieldName=”Attachments” runat=”server”/>

Comments

Popular posts from this blog

SharePoint Designer 2013 Approval Workflow with Comments

Change SharePoint server hostname and Web Application Names

The Timer Service Failed to Recycle