Thursday, November 27, 2008

Creating a user friendly error message from web part

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: