Generating a user error message from an event handler
Hi all,
Hopefully a quick question:
Is it possible to send a message to a user of Umbraco if I've done something in an event handler?
My example is:
A user tries to delete a node that has children under it so I stop this in the MoveToTrashEventHandler but would really like to pop something up to inform the user that this has happened. I read that someone tried something like:
((umbraco.BasePages.BasePage)sender.HttpContext.CurrentHandler).speechBubble (umbraco.BasePages.BasePage.speechBubbleIcon.error, "Error deleting","This item cannot be deleted because it has children under it");
Generating a user error message from an event handler
Hi all,
Hopefully a quick question:
Is it possible to send a message to a user of Umbraco if I've done something in an event handler?
My example is:
A user tries to delete a node that has children under it so I stop this in the MoveToTrashEventHandler but would really like to pop something up to inform the user that this has happened. I read that someone tried something like:
But this doesn' work :(
is working on a reply...