johnz02-hotmail
-
4/30/2013 6:37:25 AM
Custom error message in CMSDesk
Hi all
I’m currently creating a class (under \App_Code) to perform some business logic for a Document_Insert_Before event. The business logic checks if a input Email exists, it shows a customized error message if it exists. I want to display this error message in the build-in red error box under CMSDesk (pls see screenshot here http://oi40.tinypic.com/2ai56c7.jpg) So instead of showing “An error orrcurred…”, I want to display my customized text within the red block. Can you please let me know how to do it, Do I need to throw a type of CMS exception so that it can be captured by CMSdesk ?
I tried “throw new System.ApplicationException("test error message");” But nothing happened.
Thanks a lot
|