Search This Blog

Wednesday, October 12, 2005

ObjectDataSource


After blogging yesterday, I couldn't rest until
I found that Microsoft has provided a property
on the object data source to address this situation.

You need to set the DataObjectTypeName to call an Update
or Insert method that accepts an object parameter.






OnUpdated="ObjectDataSource1_Updated" 
DataObjectTypeName="Author" SelectMethod="GetAuthor"
TypeName="Author" UpdateMethod="Save" 
OnUpdating="ObjectDataSource1_Updating"
InsertMethod="Save" 
OnSelecting="ObjectDataSource1_Selecting">




Happy Coding Guys.


No comments: