Nadia,
Thanks for the quick response. I am using the WebImageButton. I will attach some code that I am using as the code doesn't recognize the cancel method of the e object.
Private Sub cmdSave_Click(sender As Object, e As Infragistics.WebUI.WebDataInput.ButtonEventArgs) Handles cmdSave.Click
If UpdateRecord() Then
MsgBox("Record is saved.", MsgBoxStyle.OkOnly, "Record Saved")
Else
e.cancel = True
End If
End Sub