【问题标题】:ajax cascading dropdown list method error 500 on IE10IE10上的ajax级联下拉列表方法错误500
【发布时间】:2013-11-10 15:52:44
【问题描述】:

我正在 asp.net 中开发一个应用程序,它需要通过调用 asmx 方法来填充级联下拉列表。

该代码在 Google Chrome 和 Mozilla FireFox 上运行良好,但在 IE10 上抛出 Method Error 500.. 我缺少任何 IE 设置吗??

代码如下:

<ajaxToolkit:CascadingDropDown ID="SomeCascadingDropDown" runat="server"
ParentControlID="SomeParentDropDownList" Category="Product"
TargetControlID="SomeDropDownList"
ServicePath="~/Services/SomeEntitysData.asmx"
ServiceMethod="GetSomeEntity"
LoadingText="Loading"
PromptText="Select">
</ajaxToolkit:CascadingDropDown>

e

【问题讨论】:

  • 这不太可能,因为 web 服务假设是独立于平台的。请添加更多代码,例如 webservice 的代码隐藏

标签: asp.net internet-explorer asp.net-ajax asmx ajaxcontroltoolkit


【解决方案1】:

// 要允许使用 ASP.NET AJAX 从脚本调用此 Web 服务,请取消注释以下行。 [System.Web.Script.Services.ScriptService]

【讨论】:

    猜你喜欢
    • 2013-05-02
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多