Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Steven Newstead 62 posts 103 karma points
    Jul 04, 2011 @ 13:51
    Steven Newstead
    0

    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");

    But this doesn' work :(

     

     

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies