对象数据源找不到方法. [英] object data source can not find method .

查看:106
本文介绍了对象数据源找不到方法.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用my-sql数据库和连接字符串很好地创建了数据集.只需为表适配器创建get方法.在尝试使用添加查询创建用于插入,更新,删除的查询并使用ui测试该查询的语法正确后,该行受到了影响.之后,我在default.aspx中创建了objectdatasource.在表适配器上将select方法设置为get方法,插入,更新,删除方法到已配置的方法.但是当我尝试插入,更新,删除而不是错误时,表明对象数据源找不到方法insert.解决方案是什么.

I have created dataset using my-sql database and connection string well . simply created get method for table adapter . After i have tried to create query for insert , update , delete using add query and tested using ui that the query is in correct syntax , so , that row was affected . After that i have created objectdatasource at default.aspx . Set select method to get method , insert , update , delete method to the configured method at the table adapter . but when i try to insert , update , delete than error shows that object datasource could not find method insert . What is the solution .

推荐答案

选中此链接,这说明了如何添加和使用ObjectDataSource
在ASP.net 2.0和C#中使用对象数据源访问数据 [
Check this link this explain how to add and use ObjectDataSource
Accessing Data Using Object Data Source in ASP.net 2.0 and C#[^]


这篇关于对象数据源找不到方法.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆