Ajax 以POST模式去提交数据 为什么后台得不到数据呢,郁闷中…

Ajax 以POST方式去提交数据 为什么后台得不到数据呢,郁闷中……
本帖最后由 liuhanghappy 于 2011-04-21 16:56:57 编辑
这是部分js代码:
    xmlHttp.open("POST", "buy.ashx", true);
    var text = "uid=1&gid=2";
    xmlHttp.send(text);

后台代码:
    string shopid = context.Request.Form["uid"];
总是null,求各位大虾帮忙看看,帮帮小弟

------解决方案--------------------
设置了content-type了没有?

xmlHttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); 

------解决方案--------------------

  $.ajax({
                type: "POST",
                url: "GetMap.ashx/ProcessRequest",//你的方法名呢
                dataType: "json",
                success: function (data) {