Sending JSON collection to ASMX webservice

前端 未结 1 1909
暖寄归人
暖寄归人 2021-01-25 23:55

I have this class :

public class DesignElements
{
    public List Elements;
    public bool Front { set; get; }
    public          


        
相关标签:
1条回答
  • 2021-01-26 00:22

    as I got in the some search specially in Jquery Ajax Posting json to webservice

    First I have to convert my object to JSON :

    data: {DesignElements : JSON.stringify(json)}
    

    and post it to webserivce

        [WebMethod]
        public void SaveJson(DesignElements DesignElements)
        {
        }
    
    0 讨论(0)
提交回复
热议问题