passing json string as parameter to webmethod

后端 未结 4 687
野性不改
野性不改 2021-01-21 00:29

I\'m making an ajax post to a webmethod EmailFormRequestHandler, I can see on the client side (through firebug) that status of the request is 200 but it\'s not hit

4条回答
  •  悲&欢浪女
    2021-01-21 01:20

    First thing I noticed is that you are missing contentType: "application/json; charset=utf-8" in your $.ajax. Also affffd to your $.ajax a complete callback it returns jqXHR,textStatus. I think the complete callback will help because textStatus one of the following ("success", "notmodified", "error", "timeout", "abort", or "parsererror"). This might help you track down the issue.

提交回复
热议问题