我有一个 AJAX 控制工具包文件上传(版本 15.1.4),它允许我将文件上传到我的 ASP.Net Web 应用程序。直到本周为止,这一直很好。从昨天开始,只要我选择了一个文件,上传就会生成一个 JavaScript 错误。
Object doesn't support property or method 'setText'
在ScriptResource.axd
:
fileInfoContainer.appendChild(fileInfoText);
fileInfoContainer.appendChild(fileStatusText);
$common.setText(deleteButton, Sys.Extended.UI.Resources.AjaxFileUpload_Remove); <== here
$addHandlers(deleteButton, {
'click': Function.createDelegate(this, function() {
onRemoveItem(self);
})
});
我不记得我已经更改了此页面上的任何内容(上周没有触及)以及 Web 应用程序中的另一个页面,该页面具有类似的文件上传功能,就像一个魅力..
有没有人知道为什么 ScriptResource 会抛出这个异常?提前致谢 :)