I developed a custom event receiver class that overrides the ItemAdded method
after the list item is added I want to make some checks and based on a certain condition I want to delete the added item.
I was able to delete the item but i want to display an error message so I used
properties.Cancel = true;
properties.ErrorMessage = "Can't insert this item";
when I debugged I found no errors but the user is not directed to the error page.
is there any workaround for this ?
thanks