Home All Groups Group Topic Archive Search About

ObjectDataSource and ReadOnly Object Property

Author
13 Jan 2006 11:07 PM
Joey_Ch=F6mpff
LS,

I've an object who has an readonly property named Id, this property is
filled from the database with an Identity-value.

When I execute "DetailsView1.UpdateItem(true);" then I get the
following exception:

The 'Id' property on the type specified by the DataObjectTypeName
property in ObjectDataSource 'ObjectDataSource1' is readonly and its
value cannot be set.

I've tried al logical properties on the ObjectDataSource, but I can't
find an anwser.

Could somebody help me.

Thanx in advance.

Greetz,

Joey Chömpff

AddThis Social Bookmark Button