473,473 Members | 1,954 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

ObjectDataSource 'x' could not find a non-generic method 'Update'

My ASP.NET 2.0 project has a GridView that I want to be able to edit and
update records with. The GridView has been bound to an ObjectDataSource
control that has the following Update method signature:

Update(Nullable<Int32> Tile_Number, String Tile_Name, String Tile_Path,
Nullable<Decimal> Value, Boolean Sold, Boolean Payment_Verified,
Nullable<Byte> Owner_Type, String Line_1, String Line_2, String First_Name,
String Last_Name, String Company, String Address, String City, String State,
String Postcode, String Country, String Email, String Phone, String
Original_Tile_Name), returns Int32

This is indeed all columns in the underlying Access table and derived
DataTable Adapter to which my ObjectDataSource is bound. Tile_Name is the PK.

Weird thing is that I get the following error when I click Update in my
GridView:
ObjectDataSource 'ods_Tiles' could not find a non-generic method 'Update'
that has parameters: Tile_Number, Tile_Name, Tile_Path, Value, Sold,
Payment_Verified, Owner_Type, Line_1, Line_2, First_Name, Last_Name, Company,
Address, City, State, Postcode, Country, Email, Phone, Original_Tile_Name,
Tile Number, Tile Name, Tile Path, Payment Verified, Owner Type, Line 1, Line
2, First Name, Last Name, original_Tile Name.

If you look closely at the error you will see that a lot of the field names
are duplicated. I simply cannot find anywhere in my project, including the
DataSet xss file, that the fields are mentioned more than once. Has anyone
else ever come across this problem?

TIA,
Scott Hooper
May 3 '06 #1
1 2753
After a couple of days of going round and round in circles I have finally
discovered what the problem is. Make sure your tables in Access have no
spaces in the field names. That's it! *groan* I tested by putting a space
back in and got the original error - duplicated fields names in the update
function signature. I'm going out on a limb here and declaring this a bug
with Framework 2. I base this on the fact that nowhere in the code was the
problem evident. It seems to be invented at runtime by the ODS object.

Hope others can benefit

"Scott F K Hooper" wrote:
My ASP.NET 2.0 project has a GridView that I want to be able to edit and
update records with. The GridView has been bound to an ObjectDataSource
control that has the following Update method signature:

Update(Nullable<Int32> Tile_Number, String Tile_Name, String Tile_Path,
Nullable<Decimal> Value, Boolean Sold, Boolean Payment_Verified,
Nullable<Byte> Owner_Type, String Line_1, String Line_2, String First_Name,
String Last_Name, String Company, String Address, String City, String State,
String Postcode, String Country, String Email, String Phone, String
Original_Tile_Name), returns Int32

This is indeed all columns in the underlying Access table and derived
DataTable Adapter to which my ObjectDataSource is bound. Tile_Name is the PK.

Weird thing is that I get the following error when I click Update in my
GridView:
ObjectDataSource 'ods_Tiles' could not find a non-generic method 'Update'
that has parameters: Tile_Number, Tile_Name, Tile_Path, Value, Sold,
Payment_Verified, Owner_Type, Line_1, Line_2, First_Name, Last_Name, Company,
Address, City, State, Postcode, Country, Email, Phone, Original_Tile_Name,
Tile Number, Tile Name, Tile Path, Payment Verified, Owner Type, Line 1, Line
2, First Name, Last Name, original_Tile Name.

If you look closely at the error you will see that a lot of the field names
are duplicated. I simply cannot find anywhere in my project, including the
DataSet xss file, that the fields are mentioned more than once. Has anyone
else ever come across this problem?

TIA,
Scott Hooper

May 5 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Eiriken | last post by:
Hello everyone, I am using ASP.NET 2 and trying to bind a objectdatasource to a gridview. By doing this the most common way by adding an objectdatasource to the page and by using the wizard to...
3
by: Jeronimo Bertran | last post by:
I have a FormView that shows details of a specific record on a table. The SelecMethod returns a DataSet that includes all the fields from my Event table and other read-only fields from linked...
10
by: J055 | last post by:
Hi I've been trying out SqlCacheDependency using the ObjectDataSource and SQL Server 2005. It all works quite well with the minimum of configuration, e.g. <asp:ObjectDataSource...
11
by: Norbert Ruessmann | last post by:
Hello group, I have a problem with ObjectDataSource and ITypedList. At the end of this entry you find the implementatiopn of my List class, derived from ArrayList and implementing ITypedList....
4
by: J055 | last post by:
Hi I thought I was trying to do something very simple but I'm have a lot of trouble trying to do the following. <asp:FormView ID="fvGroups" runat="server" DataKeyNames="GroupID"...
14
by: Rolf Welskes | last post by:
Hello, I have an ObjectDataSource which has as business-object a simple array of strings. No problem. I have an own (custom) control to which I give the DataSourceId and in the custom-control...
3
by: Doug Salomon | last post by:
Hi, Recently, my site has been generating errors which say: "Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled...
1
by: HockeyFan | last post by:
protected void gvAuthorizedSigners_RowCommand(object sender, GridViewCommandEventArgs e) { if (e.CommandName == "EmptyInsert") { odsAuthorizedSigners.Insert(); return; } if (e.CommandName...
0
by: =?Utf-8?B?UGF1bA==?= | last post by:
I have a ListBox server control named "lb_dates" with a SelectionMode of "Multiple". The user can select multiple dates from the listbox. I have ObjectDataSource named "ods_rfq" with a...
1
by: Andrew Cooper | last post by:
I've got a report that is using an ObjectDataSource to populate its data. The problem is that the report takes longer than 30 seconds to generate so it times out. If I were using an SQLDataSource...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.