$.ajax({
type: "post",
url: "OrderInfo/OrderInfo.ashx?id=" + Math.random(),
data: { orderaddr: escape(orderaddress.val()), ordertype: ordertype.val(), order: "order" },
success: function(result) {
if (result == "OK") {
alert(ordername.val() + " 提交成功,请等待客服人员的回复");
return;
}
else {
alert("该用户已经提交过订单");
return;
}
}
});
ashx页面:
var orderaddr =HttpUtility.UrlDecode(context.Request.Form["orderaddr"],System.Text.Encoding.GetEncoding("utf-8"));