Home » Applications » .NET Form/GridView Update Command Property

.NET Form/GridView Update Command Property

Insert this code right below <!DOCTYPE html PUBLIC “…..”> tag:

Sub UpdateMessage(ByVal source As Object, ByVal e As SqlDataSourceStatusEventArgs)
If e.AffectedRows > 0 Then
‘ Perform any additional processing,
‘ such as setting a status label after the operation.
Label1.Text = “- Information updated successfully!”
Else
Label1.Text = “No data updated!”
End If
End Sub ‘UpdateMessage

Insert this into the right after update command

OnUpdated=”UpdateMessage”

Information source: msdn.microsof.com