惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

博客园 - 叶小钗
D
Docker
Google DeepMind News
Google DeepMind News
Y
Y Combinator Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Blog — PlanetScale
Blog — PlanetScale
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
U
Unit 42
博客园 - 【当耐特】
N
Netflix TechBlog - Medium
V
Visual Studio Blog
Microsoft Azure Blog
Microsoft Azure Blog
博客园_首页
Recent Announcements
Recent Announcements
GbyAI
GbyAI
T
Tailwind CSS Blog
S
SegmentFault 最新的问题
WordPress大学
WordPress大学
T
The Blog of Author Tim Ferriss
Engineering at Meta
Engineering at Meta
L
LangChain Blog
A
About on SuperTechFans
M
MIT News - Artificial intelligence
B
Blog

博客园 - Lordan

有sharepoint团队的公司 spgridview的过滤功能回调时发生错误~ moss web service的权限问题 LINQ to SharePoint 试用感受, 欢迎讨论~ 获取共享服务中用户配置的其它额外信息 发布一款天气预报webpart MOSS开发Solution Community Kit for SharePoint 利用资源文件实现多语言的系统 调试有JS的InfoPath 2003 发布一个域安全级别的无代码InfoPath表单作为文档库模版 (InfoPath 一) InfoPath表单容器XmlFormView 列出W3WP进程端口号的详细内容(小技巧) 在blog中添加attachments功能 (修改系统Control) 显示表单页面的编辑模式 - Lordan - 博客园 利用SharePoint:DelegateControl部署自定义UserControl Flash + SharePoint WebService播放视频 (二) Flash + SharePoint WebService播放视频 (一) 文档库中文件夹的权限管理
在blog中添加attachments功能 (利用SharePoint:AttachmentUpl...
Lordan · 2008-06-17 · via 博客园 - Lordan

需求:

    在sharepoint中,添加了一个blog, 老板需要在Create a post的时候, 可以添加attachment.

分析:

    一般来说, 一个Custom list通过Settings -> Advanced Settings, 确定Attachments选中Enabled. 后默认情况就可以使用上传attachment了, 可惜在blog中的post无论如何也不显示.

于是决定通过SPD试试了, 步骤如下:

1.   用SPD打开NewPost.aspx页面;

2.   选中该WebPart, 点击Default to Master's Content;

3.   然后Create Custom Content;

4.   插入 - > SharePoint 控件 -> 自定义列表表单;

5.   插入代码

<SharePoint:AttachmentUpload ControlMode="New" runat="server" ID="AttachmentUpload"></AttachmentUpload>

6.  出错了吧!

于是网上找其它的资料, 都没有成功的, 郁闷死我了! 于是放弃了.

<SharePoint:AttachmentUpload ControlMode="New" runat="server" ID="fileupload{$Pos}">
</SharePoint:AttachmentUpload>
<SharePoint:AttachmentsField ControlMode="New" FieldName="Attachments" runat="server" Visible="true"></SharePoint:AttachmentsField>