第一步:把对象转JSON字符格式

var jsonStringify = JSON.stringify({})

 第二步:POST提交

$.post("/api/notify_url.aspx", jsonStringify, function (res) {

}, "json");

 第三步:.NET后台接收数据

protected void Page_Load(object sender, EventArgs e)
{
    Response.ContentType = "application/x-www-form-urlencoded";
    StreamReader reader = new StreamReader(Request.InputStream);
    string stream = reader.ReadToEnd();
    notifyjson json = new JavaScriptSerializer().Deserialize<notifyjson>(stream);
}

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-06
猜你喜欢
  • 2022-12-23
  • 2021-07-13
  • 2021-06-05
  • 2022-01-28
  • 2021-12-15
  • 2022-12-23
  • 2021-07-10
相关资源
相似解决方案