This is a little tip that will save you an hours work. If you want to display a cutsom error page with a link say something like "Your not allowed to complete this operation. Please refer
Instruction Guide for instructions" you can simply use the Out-of-Box SPUtility.TransferToErrorPage method.
Here is how you can use it
SPUtility.TransferToErrorPage("Your not allowed to complete this operation. Please refer to {0}, {1}", "Instruction Guide", "http://somethingguide.aspx");
You can also use SPUtility.TransferToSuccessPage same way to display a custom page after sucess.
Ads by Google
No comments:
Post a Comment