How to pass dataset for update via Objectdatasource

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top