I have written an event handler using ItemDeleting event , instead of showing default error page when user try to delete a document from document Library I want to show a warning message in Pop-up box ( Javascript)..

Regards Ash..

2 Answers 2


It is in SP2007 event handlers not possible to open a dialog or redirect users to another page! SP2010 has improved the object model with the RedirectUrl property to allow event handlers to redirect users to another page. But to my knowledge it is still not possible to open a dialog from an event handler.


You can use Application pages for custom Error page

  • While this post may answer the question, we prefer more details such as "why". Please edit your post with additional details. See answer for general guidelines. Thanks.
    – SPDoctor
    Nov 24, 2011 at 9:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.