jquery 访问.ashx ashx取所传参数的值

jquery 访问.ashx 取值

            $.ajax({
                type: "POST",
                url: "ajaxUpFile.ashx",//这是访问的。ashx文件
                data:{ upfile: $("#" + obfile_id).val()},

.ashx 中用

string teststr = context.Request.Form["upfile"]; //upfile为参数名

posted @ 2012-05-30 20:55  diwer  阅读(362)  评论(0编辑  收藏  举报