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 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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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...
|
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...
|
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...
|
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....
|
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"...
| |
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...
|
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...
|
by: HockeyFan |
last post by:
protected void gvAuthorizedSigners_RowCommand(object sender,
GridViewCommandEventArgs e)
{
if (e.CommandName == "EmptyInsert")
{
odsAuthorizedSigners.Insert();
return;
}
if (e.CommandName...
|
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...
|
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...
|
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,...
| |
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...
|
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,...
|
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...
|
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...
|
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,...
|
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...
| |
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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 ...
| |