Can I do something like:
Protected Sub myDropdown_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs)
Try
UpdateRemoteDB()
SendAnAlertMailThatItWorked()
Catch ex As Exception
DisplayMessageThatUpdateRemoteDBFailed()
SendEmailToAdminWithErrorDetail()
End Try
End Sub
where in the case UpdateRemoteDB() fails, then DisplayMessageThatUpdateRemoteDBFailed() would ideally trigger a message that the remote db update failed and that the user should contact the admin.
However, i am trying to make it as unobtrusive as possible - i.e. i would rather not redirect the user to whole different custom error page: if possible I'd prefer to return an error message to the screen on some sort of asp.net control - ie: to perhaps trigger visibility of a hidden label, (or maybe a customvalidator contro ...
Go to the complete details ...