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
Post a Comment