日期:2014-05-17  浏览次数:20407 次

将json对象传给一般处理程序(.ashx),后台该如何接收并处理?
前端代码如下:
JScript code
$.getJSON("test.js", { name: "John", time: "2pm" }, function(json){
  alert("JSON Data: " + json.users[3].name);
});


一般处理程序里如何接收该json对象,并取得里面的值?

------解决方案--------------------
Request.QueryString["name"]
------解决方案--------------------
3楼正解
------解决方案--------------------
context.Request.QueryString["name"]
context.Request.QueryString["time"]
------解决方案--------------------
string name = context.Request.Params["name"];
string time = context.Request.Params["time"];