jQuery to call Action Method in ASP.NET MVC C# by Ajax

后端 未结 4 430
夕颜
夕颜 2020-12-16 18:09

I have tried for hours to get this working, and I am really hoping one of you knows (a heck of a lot) more about this than I. When the client keys up in a textbox, I would l

4条回答
  •  借酒劲吻你
    2020-12-16 19:05

    1. Ensure "url" is in the format page.aspx/updateOrder.

    2. Specify datatype: json

    3. Ensure your updateOrderJS() is being called.

    4. Ensure contentType: "application/json; charset=utf-8" is included.

    Note: [WebMethod] is used for calling webforms methods, not MVC.

提交回复
热议问题