如何防止自定义UI网站核心出现错误消息

问题描述 投票:0回答:1

我已经建立了内容编辑器XML ui元素。我通过带有代码

的命令启动它
string url = Sitecore.UIUtil.GetUri("control:CloneToMarkets") + "&id=" + HttpUtility.UrlEncode(id) + "&path=" + HttpUtility.UrlEncode(path) + "&database=" + HttpUtility.UrlEncode(database);
Context.ClientPage.ClientResponse.ShowModalDialog(url, "400px", "700px", string.Empty, true);

在我的dialogform类中,我重写了OnLoad和OnOK。在加载时,我在类的开头调用了它的基本方法,而OnOk以该基本方法结束。

如果我在自定义DialogForm上“确定”,“取消”或“ X”,则会出现此错误:enter image description here

我的对话框运行正常,并且完成了它的目的,之后我只是收到此错误。有谁知道是什么原因造成的?

sitecore sitecore8 sitecore8.2 sitecore9
1个回答
0
投票
© www.soinside.com 2019 - 2024. All rights reserved.