When working with event receivers you can use custom error pages. For example and implementation tips you can look here: http://www.zimmergren.net/technical/sp-2010-how-to-event-receivers-and-custom-error-pages
This doesn't work for ItemDeleting event receivers.
Illustration
The following piece of code:
will produce the following result:
We don't see the custom error page as we should as per the article above.
Semi-solution
We can use just custom message, not the custom page in case of ItemDeleting.
Code:
Result:
Enjoy.
This doesn't work for ItemDeleting event receivers.
Illustration
The following piece of code:
will produce the following result:
We don't see the custom error page as we should as per the article above.
Semi-solution
We can use just custom message, not the custom page in case of ItemDeleting.
Code:
Result:
Enjoy.
Comments
Post a Comment