dimanche 19 avril 2015

Umbraco Event handler - Raise Custom UI Error message


Vote count:

0




I am using Umbraco 7.2.4. I added functionality to publish event.


how can I raise custom Error message while there is Exception in my code, and display it to the user?


I tried: var clientTool = new Umbraco.Web.UI.Pages.ClientTools((System.Web.UI.Page)HttpContext.Current.CurrentHandler); clientTool.ShowSpeechBubble(SpeechBubbleIcon.Error, "Choose first a content page", "Page has not been added.");


But it's throw Exception: Unable to cast object of type 'System.Web.Http.WebHost.HttpControllerHandler' to type 'System.Web.UI.Page'


Thank



asked 1 min ago

Shir

14






Umbraco Event handler - Raise Custom UI Error message

Aucun commentaire:

Enregistrer un commentaire