How to redirect to the SharePoint Success or Error Message page


How to redirect to the SharePoint Success or Error page with custom message.


  • SPUtility.TransferToSuccessPage("Operation Completed Successfully");
  • Exception ex = new Exception("Operation Failed");SPUtility.TransferToErrorPage(ex.Message);

Comments

Popular posts from this blog

SQL SERVER – FIX : Error 3154: The backup set holds a backup of a database other than the existing database

SharePoint Close methods for SP Long Operations and Redirect Error Page

The model backing the context has changed since the database was created. Consider using Code First Migrations to update the database