473,786 Members | 2,447 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Gentle.Net: Inserts from an ObjectDataSourc e?

I've got Gentle.Net objects bound to an ObjectDataSourc e. I have a
grid that comes up fine. I then have a DetailView that is bound to
another ObjectDataSourc e. When I try to update from the DetailView, I
can put a break point in the ItemInserting and/or ItemUpdating
handlers and step through and watch when the object is set. Each of
the object properties, minus the ID field, are set. The ID field is
left to zero, as this is the default. I never touch that. However,
stepping through I get the following error:

The 'Id" property on the type specified by the DataObjectTypeN ame
property in the ObjectDataSourc e odsCaseNoteDeta il is readonly and its
value cannot be set.

I'm not trying to set that value. What's going on and how do some of
you work with Gentle.Net and an ObjectDataSourc e?

Oct 9 '07 #1
0 1126

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

Similar topics

1
1009
by: Kristof Van Praet | last post by:
Hello all, The ObjectDataSource control uses reflection to create instances of business components and call the appropriate methods to select, update,... data. How can I use the ObjectDataSource control if I don't want to allow it to instantiate the businesscomponents directly but use a ComponentFactory which takes care of creating components. How can I use the ObjectDataSource control with this factory. The code to create the...
1
2147
by: thzero | last post by:
Is there any way to do this without using the ObjectDataSource? (Apologies for the long post) I have a simple data object: public class TestDO { public TestDO() {} public ID { get; set; } public Name { get; set; } public Description { get; set; }
5
1990
by: Ole M | last post by:
I'm having some trouble using the ObjectDataSource in ASP.NET 2.0. I have a wrapper that contains the static methods for Select and Update. The Update-method takes the business object as parameter. When the Update-method is invoked by the ObjectDataSource, the object referenced is not the same object returned by the Select-method, but a new object with only the values from the Edit-template. So basically I get a reference to a useless...
2
1581
by: Ram | last post by:
I have an issue with detailsview control bound to an objectdatasource. scenario is i have a business logic component with CRUD methods that accept custom business entity objects. In asp.net layer I'm using gridview and detailsview controls that gets bound to an objectdatasource control which uses my businesslogic CRUD methods. Now If i use all databound fields, all my selects, inserts, updates, deletes work just fine. As soon as i convert...
3
1347
by: John Bailey | last post by:
I have a page with a business object that is populated by parsing input from the page (specifically a scanned drivers license). I was hoping that I could display the results using a details view or bound to labels in a table. In .Net 1.1, I would have just bound the individual text fields to the object. This does not apear to be an option in .Net 2.0. The ObjectDatasource seemed to be what I wanted (after all, I am binding to an...
2
6270
by: J055 | last post by:
Hi I've implemented caching for my ObjectDataSource. <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" EnableCaching="True" CacheDuration="10" CacheExpirationPolicy="Sliding" SelectMethod="GetUsers" TypeName="BizObject"></asp:ObjectDataSource> This works, however I need to explicitly clear/remove the cache when I
0
1050
by: dmannion | last post by:
What is the best (simplest, most performant) way to bind a web form to a typed dataset, when the web form is only used to insert new records (like a registration page)? I've tried configuring the ObjectDataSource via the "Configure Data Source" wizard, but my business object only has a single method for inserts (which takes the typed dataset as a parameter), no select method. Any thoughts? I really just want a simple way to bind the...
1
8581
by: Barry L. Camp | last post by:
Hi all, Wondering if someone can help with a nagging problem I am having using a GridView and an ObjectDataSource. I have a simple situation where I am trying to delete a row from a table, but it doesn't seem to work at all. Below is my ASP.NET page, and further below, my VB.NET method that I am trying to call: <div id="admin-faq" class="page"> <h2>Site FAQs (Frequently Asked Questions)</h2>
2
3251
by: rgparkins | last post by:
So, I've bitten the bullet and am converting some of my asp.net 1.1 sites to asp.net 2.0, now after many issues I have come to a stop with the objectdatasource and gridviews and maybe someone can help! I have update, add adapter calls on the objectdatasource working well, however I have an issue with the delete call. In ASP.NET 2.0 I see that invisible columns are now no longer sent across in viewstate (something about security) and...
0
9647
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9492
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,...
1
10108
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,...
1
7510
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5397
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...
0
5532
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4064
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
2
3668
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2894
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.