I got to the Object Data binding section adding update funtionality section. The code they gave is :
Public Sub UpdateAuthor(ByVal au_lname As String, ByVal au_fname As String, _
ByVal phone As String, ByVal address As String, ByVal city As String, ByVal state As String, _
ByVal zip As String, ByVal contract As Boolean, ByVal au_id As String)
Dim authorsTableAdapter As New AuthorsDataSetTableAdapters.authorsTableAdapter
authorsTableAdapter.Update(au_id, au_lname, au_fname, phone, address, city, state, zip, contract, au_id)
End Sub
The bold part seems to be the problem as it is expecting someting like this which I created:
Public Sub UpdateAuthor(ByVal au_lname As String, ByVal au_fname As String, ByVal phone As String, ByVal address As String, ByVal city As String, ByVal state As String, ByVal zip As String, ByVal contract As Boolean, ByVal au_id As String)
Dim authorsTable As New AuthorsDataSet
Dim authorsTableAdapter As New AuthorsDataSetTableAdapters.authorsTableAdapter
authorsTableAdapter.Update(authorsTable)
End Sub
You are passing in au_id in at the beginning and the end when you only need it in the end.
No removing the first 'au_id' makes no difference.
I have searched high and low and no one seems to know the answer to the Guided Tour problem.
So what should te arguments to 'authorsTableAdapter.Update' be?
Has anyone actually completed the Guide Tour ?
Is the AutoEventWire set to true or false in the Page directive?
0 comments:
Post a Comment