this is my first threat
...i have a form that you entered some info like lastname ,firstname
id , birthdate e.t.c
tha data table was already created in sql server database
i dont like the databinding in my interface so i use a save button..i use this simple code to save but nothing happeneds
Private Sub save_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
Try
Me.Validate()
Me.PersonnelBindingSource.EndEdit()
Me.Personnel.Update(Me.Pers_DBDataSet.Personnel)
MsgBox("Update successful")
Catch ex As Exception
MsgBox("Update failed")
End Try
End Sub
thanx in advance ....(brand new in .net)
i was drag-drop the data in a form
but i dont want to use the navigation binding ...i preffer the buttons for that..
but i think in the above code i've been missing something.
...i have a form that you entered some info like lastname ,firstname
id , birthdate e.t.c
tha data table was already created in sql server database
i dont like the databinding in my interface so i use a save button..i use this simple code to save but nothing happeneds
Private Sub save_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
Try
Me.Validate()
Me.PersonnelBindingSource.EndEdit()
Me.Personnel.Update(Me.Pers_DBDataSet.Personnel)
MsgBox("Update successful")
Catch ex As Exception
MsgBox("Update failed")
End Try
End Sub
thanx in advance ....(brand new in .net)
i was drag-drop the data in a form
but i dont want to use the navigation binding ...i preffer the buttons for that..
but i think in the above code i've been missing something.
Last edited: