首页 新闻 赞助 找找看

jquery AJAX 空值

0
[已关闭问题] 关闭于 2013-05-20 19:53

script language="javascript" type="text/javascript">
$(function () {
$("a").click(function () {
$.ajax({
url: "Handler.ashx",
data: { "PageIndex": "helloword" }, // data: { "message": 123,"username":"clx" },
type: "post",
dataType: "json",
success: function (data) {

alert(data)
}
});
});
});
</script>

public void ProcessRequest (HttpContext context) {
context.Response.ContentType = "text/plain";
context.Response.Write("Hello World");
string p= context.Request["PageIndex"].ToString();
context.Response.Write(p);
context.Response.End();
}

我alert DATA 出现NULL

hamigua的主页 hamigua | 初学一级 | 园豆:4
提问于:2013-05-20 19:32
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册