您的位置:首页 > 其它

MOSS2007 xslt Get Attachments 附件 自定义 DataFormWebPart

2011-04-29 17:28 344 查看
如果在自定义页面利用xslt显示List的某一个Item的附件,只需要以下两步即可:

1.

在页面头部加入以下代码:

<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>


2.

在需要显示附件的地方加入以下代码:

<SharePoint:AttachmentsField ItemId="{@ID}" ControlMode="Display" FieldName="Attachments" runat="server" Visible="true"/>


参考网址:
http://www.getsharepoint.com/blogs/bf/Lists/Posts/Post.aspx?ID=11 http://support.microsoft.com/kb/953271/en-us http://www.getsharepoint.com/blogs/bf/Lists/Posts/Post.aspx?ID=19 http://social.msdn.microsoft.com/Forums/zh-CN/sharepointadmin/thread/60b11e64-dc40-4982-9b22-d574b5e12f1e
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐