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

推荐订阅源

博客园 - 叶小钗
云风的 BLOG
云风的 BLOG
G
Google Developers Blog
S
SegmentFault 最新的问题
罗磊的独立博客
Hugging Face - Blog
Hugging Face - Blog
美团技术团队
爱范儿
爱范儿
博客园 - 三生石上(FineUI控件)
H
Hackread – Cybersecurity News, Data Breaches, AI and More
D
DataBreaches.Net
F
Fortinet All Blogs
TaoSecurity Blog
TaoSecurity Blog
D
Docker
C
Cybersecurity and Infrastructure Security Agency CISA
K
Kaspersky official blog
宝玉的分享
宝玉的分享
腾讯CDC
Google Online Security Blog
Google Online Security Blog
Recorded Future
Recorded Future
T
The Exploit Database - CXSecurity.com
T
The Blog of Author Tim Ferriss
V
V2EX
S
Securelist
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
C
CERT Recently Published Vulnerability Notes
A
Arctic Wolf
Scott Helme
Scott Helme
L
LINUX DO - 热门话题
Y
Y Combinator Blog
P
Proofpoint News Feed
T
Tor Project blog
AWS News Blog
AWS News Blog
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
The Last Watchdog
The Last Watchdog
博客园 - 聂微东
T
Threat Research - Cisco Blogs
B
Blog
Attack and Defense Labs
Attack and Defense Labs
L
Lohrmann on Cybersecurity
C
CXSECURITY Database RSS Feed - CXSecurity.com
阮一峰的网络日志
阮一峰的网络日志
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
IT之家
IT之家
N
News and Events Feed by Topic
博客园 - 司徒正美
H
Help Net Security
C
Cisco Blogs
C
Check Point Blog
S
Secure Thoughts

博客园 - 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功能 (利用SharePoint:AttachmentUpload ) (未解决) 显示表单页面的编辑模式 - Lordan - 博客园 利用SharePoint:DelegateControl部署自定义UserControl Flash + SharePoint WebService播放视频 (二) Flash + SharePoint WebService播放视频 (一) 文档库中文件夹的权限管理
在blog中添加attachments功能 (修改系统Control)
Lordan · 2008-06-17 · via 博客园 - Lordan

需求:

     同上

问题是要解决的, 于是东改改西改该, 结果~~~.

1.  用SPD打开Editpost.aspx, 直接查看该WebPart的Code, 看ControlMode和TemplateName的属性.

2.   系统安装的所有Control都在

~\12\TEMPLATE\CONTROLTEMPLATES下面,  通过搜索New和BlogForm关键字,  发现有许多非常常用的都在DefaultTemplates.ascx;

找到相关, 默认代码是:

<SharePoint:RenderingTemplate ID="NewFormToolBar" runat="server">
    
<Template>
        
<wssuc:ToolBar CssClass="ms-toolbar" id="toolBarTbl" RightButtonSeparator="&nbsp;" runat="server">
                
<Template_Buttons>
                    
<SharePoint:AttachmentButton runat="server"/>
                 
</Template_Buttons>
        
</wssuc:ToolBar>
    
</Template>
</SharePoint:RenderingTemplate>
<SharePoint:RenderingTemplate ID="BlogNewFormToolBar" runat="server">
    
<Template>
        
<wssuc:ToolBar CssClass="ms-toolbar" id="toolBarTbl" RightButtonSeparator="&nbsp;" runat="server">
                
<Template_Buttons>
                 
</Template_Buttons>
        
</wssuc:ToolBar>
    
</Template>
</SharePoint:RenderingTemplate>
<SharePoint:RenderingTemplate ID="BlogEditFormToolBar" runat="server">
    
<Template>
        
<script>
            recycleBinEnabled = 
<SharePoint:ProjectProperty Property="RecycleBinEnabled" runat="server"/>;
        
</script>
        
<wssuc:ToolBar CssClass="ms-toolbar" id="toolBarTbl" RightButtonSeparator="&nbsp;" runat="server">
                
<Template_Buttons>                    
                    
<SharePoint:EditSeriesButton runat="server"/>
                    
<SharePoint:DeleteItemButton runat="server"/>
                 
</Template_Buttons>
        
</wssuc:ToolBar>
    
</Template>
</SharePoint:RenderingTemplate>


发现BlogNewFormToolBar & BlogEditFormToolBar标签下面的Template_ButtonsNewFormToolBar中的少了一个属性:
<SharePoint:AttachmentButton runat="server"/>Copy之后,然后重新启动IIS, 这就是我想要的结果:

New Item:

Edit Item: