G
Guest
I have a data layer that is set up to pass datasets to and from the
presentation layer. In migrating to 2.0, I would like to use the
objectdatasource.
The problem I am having is that it seems that objectdatasource update will
not pass a dataset back to the update function as a parameter.
Specifically, this is what I'm trying to do.
Function Contact_Select(ByVal _contactid As Integer) As dataset
. . .
Return (_contactdataset)
End Function
(Here's where I'm having the problem - getting the objectdatasorce update to
pass a dataset back)
Public Function Contact_Update(ByVal _contactdataset As DataSet)
.. . .
SqlDataAdapter1.Update( _contactdataset.GetChanges)
End Function
Can a dataset be used for updates with Objectdatasource?
presentation layer. In migrating to 2.0, I would like to use the
objectdatasource.
The problem I am having is that it seems that objectdatasource update will
not pass a dataset back to the update function as a parameter.
Specifically, this is what I'm trying to do.
Function Contact_Select(ByVal _contactid As Integer) As dataset
. . .
Return (_contactdataset)
End Function
(Here's where I'm having the problem - getting the objectdatasorce update to
pass a dataset back)
Public Function Contact_Update(ByVal _contactdataset As DataSet)
.. . .
SqlDataAdapter1.Update( _contactdataset.GetChanges)
End Function
Can a dataset be used for updates with Objectdatasource?