1.Inserting is not supported by ObjectDataSource 'odsPartsTmp' unless the InsertMethod is specified.
原因: datasource中没有指定Insert方法,加入UpdateMethod="Update" DeleteMethod="Delete" InsertMethod="Add" 即可。
本文介绍了如何解决在使用ObjectDataSource时遇到的插入操作不被支持的问题。通过在datasource中明确指定Insert方法,可以有效避免此错误。
原因: datasource中没有指定Insert方法,加入UpdateMethod="Update" DeleteMethod="Delete" InsertMethod="Add" 即可。
2187
1486

被折叠的 条评论
为什么被折叠?