I have a table as follows
TableName: banner_type
Columns banner_type_id (bigint) , name (varchar(200)), description(text)
1. I created a DataSet for this table with VisualStudio2005
2. I generated automatically select, insert, delete and update commands for this table (without concurrency support)
3. I created a page "add_banner_type.aspx" with a GridView + ObjectDataSource that uses my DataSet
4. The gridview selects all columns in the database, but If I try to update or delete , I get an error:
ObjectDataSource 'ObjectDataSource1' could not find a non-generic method 'Update' that has parameters: name, description, original_banner_type_id.
I thought it should worked directly??? What am I doing wrong?
None
0 Points
7 Posts
Dataset + ObjectDatasource + GridView + ASP.NET 2
Nov 10, 2005 01:44 PM|ccw3|LINK
TableName: banner_type
Columns banner_type_id (bigint) , name (varchar(200)), description(text)
1. I created a DataSet for this table with VisualStudio2005
2. I generated automatically select, insert, delete and update commands for this table (without concurrency support)
3. I created a page "add_banner_type.aspx" with a GridView + ObjectDataSource that uses my DataSet
4. The gridview selects all columns in the database, but If I try to update or delete , I get an error:
ObjectDataSource 'ObjectDataSource1' could not find a non-generic method 'Update' that has parameters: name, description, original_banner_type_id.
I thought it should worked directly??? What am I doing wrong?