$.ajax({
type: "post",
url: "/tools/ActApply.ashx",
data: "txthdmoney=" + $.trim($("#hdmoneyx")[0].value)+"&sxf=2",
success: function (result) {
}
});
.ashx后台接收数据
protected decimal hdmoney;
protected decimal hdsxf;
/// <summary>
/// 请求处理
/// </summary>
/// <param name="context"></param>
public void ProcessRequest(HttpContext context)
{
Withdrawal withdra = new Withdrawal();
context.Response.ContentType = "text/plain";
hdmoney = Convert.ToDecimal(context.Request.Params["txthdmoney"].ToString());
hdsxf = Convert.ToDecimal(context.Request.Params["sxf"].ToString());
SaveAct();
}
public bool IsReusable
{
get
{
return false;
}
}