【发布时间】:2014-02-19 08:37:07
【问题描述】:
$.ajax({
url : "Handler1.ashx",
type : "GET",
cache : false,
data : {
type : "refresh",
point: [x:1,y:2]
});
“类型”可以是“POST”。在“Handler1.ashx”中,我有“HttpContext”对象,那么如何从“HttpContext”对象中获取json呢?
我发现这是误解,我的意思是:
public void ProcessRequest(HttpContext context)
{
context.Response.ContentType = "text/plain";
// How can I get json here?
}
【问题讨论】:
标签: jquery asp.net ajax json httpcontext