摘要:
jQuery.ajax( { url: "Update.ashx", type: "POST", data: " Honor="+Honor, dataType: 'json', timeout: 1000, error: function(data) {alert("您没有权限或操作错误!");}, //error: function(XMLHttpRequest, textStatus, errorThrown) { alert(textStatus + errorThrown); }, suc 阅读全文
随笔档案-2011年6月9日
ASHX文件中的应用 Request + Session
2011-06-09 15:27 by 沐海, 2208 阅读, 收藏, 编辑
摘要:
1.ashx中REQUEST得到传递的参数HttpContext context = HttpContext.Current;//得到当前的 Context 对象,使用context.Request["ComUpdate"].ToString()2.ashx中得到Session1.在aspx和aspx.cs中,都是以Session["xxx"]=”aaa”和aaa=Session["xxx"].ToString()进行读写。而在ashx中,Session都要使用context.Session,读写方法不变。2.在ashx文件中,若要对 阅读全文