ASP.NET: jQuery AJAX 'data' param problem

前端 未结 3 1291
温柔的废话
温柔的废话 2020-12-16 13:49

I\'ve been having problems with this code I had spent the last 3 hours digging around and trying to find an answer. As I wasn\'t successful, I will just post the code and as

3条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-16 14:22

    If you're working with JSON-enabled .NET WebServices/WebMethods... my tips are:

    • Be very careful with web.config configuration. Use it to enable big parameters, POST method and JSON.

    • Use a framework to handle Object serialization e deserialization. I would recommend NewtonSoft's Json.NET.

    I don't think ASP.NET automagically do it for you, your parameters are always strings. You should take that strings, deserialize it and turn it to an array of objects.

提交回复
热议问题