I am using an ItemAdded event handler for doing some validation. If my validation fail is it possible to redirect the user to another page. Ideally it would be good to show the page in a dialog box.
Sadly setting the status on on the SPItemEventProperties to SPEventReceiverStatus.CancelWithRedirectUrl and setting the RedirectUrl does not work.
This is happening on a Document library. This means I can't do the validation in the ItemAdding event as BeforeProperties, AfterProperties & properties.ListItem does not contain the information. (http://www.synergyonline.com/Blog/Lists/Posts/Post.aspx?ID=122)
Update When trying out @Andy code below I get the following:
System.Web.HttpException was unhandled by user code
Cannot redirect after HTTP headers have been sent