随笔分类 - 一般处理程序
摘要:public void ProcessRequest (HttpContext context) { context.Response.ContentType = "text/plain"; string phone = context.Request.QueryString["phone"]; s
阅读全文
摘要:一般处理程序获得一个链接返回的值: public void ProcessRequest(HttpContext context) { context.Response.ContentType = "text/plain"; string openid = context .Request ["op
阅读全文
摘要://前台提交 <form action="a.ashx" method="post"> <input type="hidden" name="hidden" value="4" /> @x <input type="submit" value="click" id="@x"/> </form> as
阅读全文
摘要:ashx获取另一个页面的值: 注:因为这是web请求,所以要http://...web路径 using System; using System.Web; using System.Web.SessionState; using System.IO; using System.Net; using
阅读全文
摘要:{Title} {Content} $.get("Handler.ashx?n=" + Math.random(), { action: "getNews" }, function(data) { var list = $.parseJSON(data); var ul = $("#ulList"...
阅读全文
摘要:一般处理程序类后要加System.Web.SessionState.IRequiresSessionState接口,否则找不到HttpContext.Current.Session["aa"],public void ProcessRequest (HttpContext context...
阅读全文
浙公网安备 33010602011771号