To anyone who has experienced this problem!
Could not find a property named '... ' on the type specified by the
DataObjectTypeN ame property in ObjectDataSourc e '...'
I've been looking at forums about the problem that devellopers have in using
ObjectDataSourc e when trying to update or delete a record.
There has been a lot of talk like... you have to implement a list if you
wanna use direct methods in such operations, etc etc
It was also an headache to me :-s
Well, i found a way that works
In design-time, go to the properties window and choose the ObjectDataSourc e
control. Then, in property DataObjectTypeN ame just remove whatever that
is... and it will work.
For example, in my case i was using a gridview that loads database users
(the primary key of that table is of type Uniqueidentifie r).
When i configured the ObjectDataSourc e thorugh the .Net's wizard, it put
automatically in the DataObjectTypeN ame the type System.Guid
for that, i couldn't delete or update any record of the grid, so i removed
it and let the property blank.
Then, I just tried to delete and update a record and IT WORKED FINE (yes!)
:-D
i hope this helps you like it helped me
Best regards to all interested :-)
Anabela Silva 0 3640 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Dotnet Gruven |
last post by:
I've posted this in the adonet group, however it was suggested I might have
better luck here....
=============================================================
I'm trying to use a typed dataset and ObjectDataSource binding to a SQLX db
using a foreign key to filter the returned result set to display in a
GridView.
The error message in the subject line is generated when I try to bind the
following GridView to the ObjectSource that follows...
|
by: Scott F K Hooper |
last post by:
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...
|
by: MTomov |
last post by:
Hi fellas,
has anyone managed to get ObjectDataSource to work Datasets where the
Dataset is used as BusinessEntity class?
What I mean is the following architecture:
1.WebPage with ObjectDataSource
2. CustomBusinessObject which
* does validation,
|
by: Allan Ebdrup |
last post by:
I have a asp.net v2 website that runs fine on our development server. I have
published the website to a stage server and it runs fine, but when I publish
it to production I get the following error:
The type specified in the TypeName property of ObjectDataSource
'PositionPostingsDataSource' could not be found.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more...
|
by: aitor.diazdealda |
last post by:
I am in a very deep hole and i can not see the light .
Here my mistake if you could help me.
store procedure.-they work ok.
ALTER PROCEDURE dbo.UpdateEtiClientesEtidora
(
@CLI_COD_PLAZA nvarchar(3),
| |
by: Bryce |
last post by:
I have an ObjectDataSource binding a GridView, with Delete enabled. The
following is the declaration (with non-delete stuff left out to save space):
<asp:ObjectDataSource ID="CatalogItemsListDataSource"
runat="server" DeleteMethod="DeleteCatalogItem"
InsertMethod="InsertCatalogItem"
OldValuesParameterFormatString="original_{0}"
SelectMethod="GetCatalogItemsList"
TypeName="CatalogItemManager" UpdateMethod="UpdateCatalogItem">...
|
by: Kernel Bling |
last post by:
Hi Everyone,
This Saturday the stage was set. The problem simply could not go on
existing -- it had to be solved. Many hours, articles, compilations
and frustrations later I still did not find an answer. Even pacing
around my flat until I nearly went into an altered state of reality
proved futile.
So here is the problem...
When I link up the ObjectDataSource UpdateMethod to a method in the
|
by: pekbob1 |
last post by:
Hi Everybody I have the error (ObjectDataSource 'ObjectDataSource1' could not find a non-generic method 'UpdatePre' that has parameters: Comp, Job_Number, Request_Date, Customer, Contact_Name, Tel, Email, Media, Job_Size, Colors, Number_of_Lots, Proof, Job_Detail, PrepressID) when I tried to update the values in my dataset. (before I had the problem to Insert and Delete and I changed OldValuesParameterFormatString="original_{0}" to...
|
by: Cirene |
last post by:
Using Visual Studio I created a DataSet using the GUI (XSD file).
Trying to use a tiered methodology I called the functions from my BLL.
Namespace Zzz.BusinessLogicLayer
#Region "DAL Access"
Public Class States
Public Sub New()
End Sub
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
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 we have to send another system
| |