[WebMethod]
public static string InSert(string id, string CustoID, string LinkMan, string phone, string Creat, string DelivereyNo, string Fax, string DeliverAdress, string Sendtype, string docStatu, string Maker, string Description)
{
DeliverModel dm = new DeliverModel();
dm.ID = Guid.NewGuid().ToString();
dm.CustomerID = CustoID;
dm.LinkManID = LinkMan;
dm.Phone = phone;
dm.CreateTime = Convert.ToDateTime(Creat);
dm.DeliveryNo = DelivereyNo;
dm.Fax = Fax;
dm.DeliveryAdress = DeliverAdress;
dm.SendType = Sendtype;
dm.DocStatus = docStatu;
dm.Maker = Maker;
dm.Description = Description;
dm.Add();
return id;
}
------解决方案--------------------
jquery发送的json内容键名称要和方法的参数的名称一样,大小写不记得区不区分了,最好是大小也一致
data: "{id:'" + id + "',CustoID:'" + _CustomerID + "',LinkMan:'" + _LinkManID + "'
其他的参数按照服务器端的方法的参数名称改过来,位置可以不按照循序