ASP.NET 500 Internal Server Error while calling webmethod from javascript

前端 未结 5 2082
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-02 17:53

I\'m trying to call the webmethod fucntionality using AJAX but unable to get the appropriate results. I have googled my problem and found many solution but thos

5条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-02 18:35

    The Answer is here :link

    the problem is with the annotation I was using the [ScriptMethod(UseHttpGet = true)] which causing the error. just change the value from true to false.

提交回复
热议问题