Returning JSON from ASMX, and handling it correctly in Javascript

后端 未结 5 1697
轮回少年
轮回少年 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:48

    If you are returning any complex object (relational objects with foreign keys), you have 2 options:

    1. Use a DTO object
    2. Write your own specific serialization converter

提交回复
热议问题