Instead of getting a web part exception from exceptions raised in web part code, you can use the following to show a user friendly error message using built-in SharePoint functionality:
SPUtility.TransferToErrorPage("This is a user friendly error message.");
No comments:
Post a Comment