Hi,
I'm just learning the controls and I've searched the forums and documentation and examples, but don't seem to find my answer. I'm sure that I'm just overlooking the answer.
I would simply like to report server side errors back to the client. i.e if a user presses a button that causes a postback to the server, and the server code catches an exception I'd like to notify the user like this:
Any help would be appreciated!
I'm just learning the controls and I've searched the forums and documentation and examples, but don't seem to find my answer. I'm sure that I'm just overlooking the answer.
I would simply like to report server side errors back to the client. i.e if a user presses a button that causes a postback to the server, and the server code catches an exception I'd like to notify the user like this:
try
{
MyBusinessLogicCall();
}
catch(Exception ex)
{
??? icon = ErrorIcon;
string Title = "An unexpected error has occured";
string messageText = ex.message;
// Call some api function to display error info to the user
// Something like the windows MessageBox... Probably RadAlert???
// But how do I invoke this from the Server Code??
MessageBox.Show(Title, messageText, icon);
}
Any help would be appreciated!