开心

随笔分类 -  一般处理程序

摘要:public void ProcessRequest (HttpContext context) { context.Response.ContentType = "text/plain"; string phone = context.Request.QueryString["phone"]; s 阅读全文
posted @ 2016-03-18 14:47 大喜 阅读(597) 评论(0) 推荐(0)
摘要:一般处理程序获得一个链接返回的值: public void ProcessRequest(HttpContext context) { context.Response.ContentType = "text/plain"; string openid = context .Request ["op 阅读全文
posted @ 2016-02-25 10:00 大喜 阅读(762) 评论(0) 推荐(0)
摘要://前台提交 <form action="a.ashx" method="post"> <input type="hidden" name="hidden" value="4" /> @x <input type="submit" value="click" id="@x"/> </form> as 阅读全文
posted @ 2016-02-18 09:29 大喜 阅读(2193) 评论(0) 推荐(0)
摘要:ashx获取另一个页面的值: 注:因为这是web请求,所以要http://...web路径 using System; using System.Web; using System.Web.SessionState; using System.IO; using System.Net; using 阅读全文
posted @ 2016-01-28 13:56 大喜 阅读(772) 评论(0) 推荐(0)
摘要:{Title} {Content} $.get("Handler.ashx?n=" + Math.random(), { action: "getNews" }, function(data) { var list = $.parseJSON(data); var ul = $("#ulList"... 阅读全文
posted @ 2016-01-26 15:21 大喜 阅读(312) 评论(0) 推荐(0)
摘要:一般处理程序类后要加System.Web.SessionState.IRequiresSessionState接口,否则找不到HttpContext.Current.Session["aa"],public void ProcessRequest (HttpContext context... 阅读全文
posted @ 2016-01-26 14:46 大喜 阅读(962) 评论(0) 推荐(0)

坦然 会增进信任 - 信任 感情才会升华