Jquery AJAX with ASP.NET WebMethod Returning Entire Page

后端 未结 4 1062
既然无缘
既然无缘 2020-11-29 05:55

I\'m doing some simple tests (in preparation for a larger project) to call an ASP.NET WebMethod using JQuery AJAX. In my example, my WebMethod returns a simple string. Howev

4条回答
  •  抹茶落季
    2020-11-29 06:22

    Try changing the last parameter "html" to "text". This parameter specifies the type of data to be returned.

提交回复
热议问题