摘要: 上代码 1 using System; 2 using System.Collections.Generic; 3 using System.IO; 4 using System.Linq; 5 using System.Web; 6 using System.Web.UI; 7 using System.Web.UI.WebControls; 8 using System.Web.Security; 9 10 public partial class wx_Default : System.Web.UI.Page11 {12 protected void Page_Load(obje... 阅读全文
posted @ 2013-11-26 16:02 duanyong 阅读(317) 评论(0) 推荐(0) 编辑
摘要: 1 context = HttpContext.Current; 2 string ServerPath = HttpContext.Current.Server.MapPath("~"); 3 string FilePath = ServerPath + "\\wx\\weixin.txt"; 4 if (File.Exists(FilePath)) 5 { 6 File.Delete(FilePath); 7 } 8 string strCon = Re... 阅读全文
posted @ 2013-11-26 15:21 duanyong 阅读(699) 评论(0) 推荐(0) 编辑
摘要: 1.如果是为了验证微信接口的token是否通过, 将valid注释去掉 2.如果要返回给用户值, 注释掉valid作者:石世特出处:http://www.cnblogs.com/TivonStone/ 1 2 3 using System; 4 using System.Web; 5 6 public class WeixinInterface : IHttpHandler 7 { 8 HttpContext context = null; 9 string postStr = ""; 10 public void ProcessRequ... 阅读全文
posted @ 2013-11-26 09:20 duanyong 阅读(363) 评论(0) 推荐(0) 编辑