62,071
社区成员
发帖
与我相关
我的任务
分享
//点击事件
$("#btnReset").click(function ()
{
$.ajax({
type: "post",
url: "ResponseHandler.ashx",//新建一个一般处理程序
data: "",
datatype: "json",
async: false,
success: function (returnData)
{
//取得数据然后显示出来
}
});
});
一般处理程序中
public void ProcessRequest(HttpContext context)
{
context.Response.ContentType = "text/plain";
//查询数据取得然后返回数据
context.Response.Write(//数据);
context.Response.End();
}
//点击事件
$("#btnReset").click(function ()
{
$.ajax({
type: "post",
url: "ResponseHandler.ashx",//新建一个一般处理程序
data: "",
datatype: "json",
async: false,
success: function (returnData)
{
//取得数据然后显示出来
}
});
});
一般处理程序中
public void ProcessRequest(HttpContext context)
{
context.Response.ContentType = "text/plain";
//查询数据取得然后返回数据
context.Response.Write(//数据);
context.Response.End();
}