Sitecore 8:SheerResponse对话框弹出窗口不再有效?

时间:2016-03-07 11:02:25

标签: c# sitecore sitecore8

我有一个任务通过SheerResponse.Alert()向运行它的用户传达问题,但它似乎在Sitecore 8.x中不再有效。

这是一个已知问题吗?我应该使用SPEAK替代品吗?

Stacktrace System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. --->
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> 
System.NullReferenceException: Object reference not set to an instance of an object. at Sitecore.Web.UI.Sheer.SheerResponse.Alert(String text, String[] arguments) at...

1 个答案:

答案 0 :(得分:0)

Sitecore 8不再支持Sitecore Sheer UI,您需要使用SPEAK才能使其正常工作。 请使用此参考,它有代码片,显示您如何使用Sitecore 8显示弹出窗口的新方法Sitecore.ExperienceEditor.Dialogs.showModalDialog。 Reference

相关问题