问题描述
我有编辑的网格视图启用,因此,当我编辑用户我得到一个错误:
i have a grid view with editing enabled so when i edit a user i get an error:
ObjectDataSource控件ObjectDataSource1找不到非泛型方法更新有参数:
我也使用详细信息视图通过数据库到新的用户插入到,但是当我尝试插入它说
ObjectDataSource 'ObjectDataSource1' could not find a non-generic method 'Update' that has parameters:i am also using a details view to insert a new user to by database but when i try to insert it says
ObjectDataSource控件ObjectDataSource1找不到非泛型方法插入,有参数:
ObjectDataSource 'ObjectDataSource1' could not find a non-generic method 'Insert' that has parameters:
固定
推荐答案
确认由ObjectDataSource控件使用的所有方法[SelectMethod,UpdateMethod,DeleteMethod,SelectCountMethod,InsertMethod]正确键入
Make sure all methods [SelectMethod, UpdateMethod, DeleteMethod, SelectCountMethod, InsertMethod] used by the ObjectDataSource are typed correctly.
检查以验证类型(sTableAdapters.SyTableAdapter)实际上包含了更新和插入法
Check to verify the Type ( sTableAdapters.SyTableAdapter ) actually contains the Update and Insert method
做这些方法都包含详细的参数错误指出,无论是在数量和顺序。请记住,参数的顺序意味着很多关于ObjectDataSource控件。
Do these methods contain exact parameters as pointed in the error, both in number and order. Remember that the order of parameters mean a lot for ObjectDataSource .
这篇关于ObjectDataSource控件“的ObjectDataSource”找不到非泛型方法“插入”,有参数(固定)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!