Returning JSON from ASMX, and handling it correctly in Javascript

后端 未结 5 1696
轮回少年
轮回少年 2020-12-18 02:07

I realize there are tonnes of similar questions already up here but I cannot figure this one out.

I have a Web Service (C#, .net 3.5). The essential Code you need

5条回答
  •  清酒与你
    2020-12-18 02:46

    If you are doing a post to your data, why are you defining UseHttpGet = true? Shouldn't that be false to match the response type from your request? Also, putting a breakpoint in the ws call to see exactly what the serializer returns would help too... I don't think it should return a JSON object if the return value is a string.

    HTH.

提交回复
热议问题