MessageBox.Show("It Worked!")
Response.Write("<br />It Worked!<br />")
Private Sub SomeMethodorEvent() Try If IsDataSaved() Then 'Funtion which saves data lblError.Text = "Data has been saved successfully" Else lblError.Text = "Data not saved" End If Catch ex As Exception LogError(ex) 'Some funtion to save actual error details lblError.Text = "Data not saved" End Try End Sub Private Function IsDataSaved() As Boolean 'Data saving code End Function
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)