错误解决:SharePoint Designer 2010编辑后,出现数据源控件未能执行插入命令,data source control failed to execute the insert command

打了SharePoint 2010 最新的SP 2的补丁,但是使用SharePoint Designer 2010 定义任何一个列表的“插入视图”时,总是出现标题那样的错误:

数据源控件未能执行插入命令

用英文GOOGLE了一圈,终于有了解决方案,data source control failed to execute the insert command。

这个问题其实是微软的BUG,SPD在自动生成代码时生成错了,我们使用SPD打开源代码视图,

以关键词检索:<SharePoint:SPDataSource    

 

如果找到如下文字:

<SharePoint:SPDataSource runat="server" DataSourceMode="List"


恭喜你,你和我也是同样的问题:

DataSourceMode="List",改成 DataSourceMode="ListItem"

就可以解决问题了!

posted @ 2013-10-13 01:10  dosboy  阅读(433)  评论(0编辑  收藏  举报