¡@

Home 

2014/10/16 ¤W¤È 12:02:40

jquery Programming Glossary: convertloginfotoxml

Posting JSON data via jQuery to ASP .NET MVC 4 controller action

http://stackoverflow.com/questions/17370062/posting-json-data-via-jquery-to-asp-net-mvc-4-controller-action

in the controller action. Here's the signature of my action method HttpPost ValidateInput false public string ConvertLogInfoToXml string jsonOfLog And here's my attempt to post some JSON data from my browser data prop 1 myArray 1 two 3 'data' is much.. myArray 1 two 3 'data' is much more complicated in my real application json jsonOfLog data .ajax type 'POST' url Home ConvertLogInfoToXml data JSON.stringify json success function returnPayload console console.log request succeeded error function xhr ajaxOptions.. type of the jsonOfLog parameter in the action method to be of type object HttpPost ValidateInput false public string ConvertLogInfoToXml object jsonOfLog Now with the original JavaScript code where I'm passing a more complex 'data' object jsonOfLog gets the..