MOSS2007 xslt Get Attachments 附件 自定义 DataFormWebPart
2011-04-29 17:28
344 查看
如果在自定义页面利用xslt显示List的某一个Item的附件,只需要以下两步即可:
1.
在页面头部加入以下代码:
2.
在需要显示附件的地方加入以下代码:
参考网址:
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
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
相关文章推荐
- Moss2007 xslt DataFormWebPart 展示图片库所有图片(文档库所有文档)
- 总结:SharePoint Designer 2010 DVWP (1) -- 概述 -- XsltListViewWebPart和DataFormWebPart
- 总结:SharePoint Designer 2010 DVWP (2) -- DataFormWebPart -- 不同类型的Column对应的XSLT写法
- 【原创】在DataFormWebPart中将列表附件显示为图片(二)[How to display list item attachments as image in DFWP Part 2]
- 【原创】在DataFormWebPart中将列表附件显示为图片(一)[How to display list item attachments as image in DFWP Part1]
- SharePoint DataFormWebPart 通过Caml和xslt聚合内容
- WSS 3.0 DataFormWebPart 可以使用 Microsoft Office SharePoint Designer 创建和自定义
- 总结:SharePoint Designer 2010 DVWP (5) -- DataFormWebPart -- 数据筛选 和 分组统计
- DataForm Webpart Inside
- ajax+FormData+javascript 实现无刷新上传附件
- moss2007中自定义webpart的安装(部署)的两种方法
- jquery.form附件上传的 $.handleError 、以及 $.httpData报错原因及解决方法
- 总结:SharePoint Designer 2010 DVWP (3) -- DataFormWebPart -- Sort and Group
- DataForm Webpart Inside (2)
- 使用FormData对象提交表单-上传附件
- 总结:SharePoint Designer 2010 DVWP (4) -- DataFormWebPart -- Parameter, QueryString, JQuery
- DataForm Webpart Inside (3)
- Use the Url Query String with the DataFormWebPart
- 【原创】如何在DataFormWebPart中嵌入自定义控件[How to embeded custom control in DFWP]
- Ajax+FormData实现大附件上传带进度条