AJAX to web method not returning JSON

后端 未结 4 416
-上瘾入骨i
-上瘾入骨i 2021-01-25 05:35

I am calling a web method in aspx page from my js file using AJAX. I have set the method to be [WebMethod] and the page inherits from System.Web.Ui.Page class. Still it does not

4条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-25 05:51

    The only thing I see missing is making the method static.

    read this article

    http://encosia.com/using-jquery-to-directly-call-aspnet-ajax-page-methods/

提交回复
热议问题