简体   繁体   English

Internet Explorer中的Ext.Net mvc AjaxResult无法识别

[英]Ext.Net mvc AjaxResult in Internet Explorer not recognized

i got a problem with Internet Explorer 11. 我遇到了Internet Explorer 11的问题。

I've got a button with a direct event in ext.net mvc which returns an AjaxResult: 我在ext.net mvc中有一个带有直接事件的按钮,该按钮返回AjaxResult:

X.Button()         
  .DirectEvents(de =>
  {
    de.Click.Url = Url.Action("saveNewDate");
    de.Click.FormID = "formNewDate";
  })
  .Text("Save")

Controller give me back an: 管制员还给我一个:

AjaxResult ar = new AjaxResult();
ar.Script = X.Msg.Alert("test", "test").ToScript();
return ar;

It is working in all browsers except in the Internet Explorer. 它可以在除Internet Explorer之外的所有浏览器中使用。 He does not display the Alert Box, instead he gives me a saveNewDate.json back for downloading. 他没有显示警报框,而是给了我一个saveNewDate.json以便下载。

How can i avoid this and just display the Msg Alert Box ? 我如何才能避免这种情况,而只显示Msg Alert Box?

Regards! 问候!

所以我将ar.IsUpload = true设置为正常。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM