jq中的ajax向ashx传递值,该怎么接收
1个回答
展开全部
ashx 页面Request.Params["name"]
public void ProcessRequest(HttpContext context)
{
context.Response.ContentType = "text/plain";
string objData = "";
int vendorId;
vendorId =context.Request.QueryString["name"];
context.Response.Write(objData);///最后返回数据
}
public void ProcessRequest(HttpContext context)
{
context.Response.ContentType = "text/plain";
string objData = "";
int vendorId;
vendorId =context.Request.QueryString["name"];
context.Response.Write(objData);///最后返回数据
}
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询