09 2013 档案
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Data;using System.Text;using System.Text.RegularExpressions;using System.IO;using System.Runtime.Serialization.Json;namespace TMFHTong{ public class JsonHelper { /// /// 获取json中的指定值 ...
阅读全文
摘要:XMLHelper.csusing System;using System.Data;using System.Xml; using System.Collections.Specialized; using System.Diagnostics;using System.Collections;namespace TMFHTong{/// /// Summary description for XmlHelper./// public class XmlHelper{private XmlHelper(){} #region /*******************************.
阅读全文
摘要://在项目里添加一个"全局应用程序类(GlobalApplicationClass)",在里面写这样的代码:publicclassGlobal:System.Web.HttpApplication{staticTimerBuildStaticPagesTimer;staticobjectlocker=newobject();staticintcount;protectedvoidApplication_Start(objectsender,EventArgse){//doublechecklock...if(BuildStaticPagesTimer==null){lock
阅读全文
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.IO;namespace test{ public class PageCreateRenderPage : System.Web.UI.Page { public string strFileName = "default.html"; public string redirectURL = null; publi...
阅读全文
摘要:经过几天研究网上的代码和谢灿大神的帮忙,今天终于用C#实现了微信公众号群发消息,现在整理一下。总体思路:1.首先必须要在微信公众平台上申请一个公众号。 2.然后进行模拟登陆。(由于我对http传输原理和编程不是特别懂,在模拟登陆的地方,不是特别清楚,希望有大神指教) 3.模拟登陆后会获得一个token(令牌)和cookie。 4.因为模拟登陆后相当于就进入了微信公众平台,在这个里面就可以抓取到需要的数据,如公众好友的昵称,fakeId。其中的fakeid非常重要,因为传输数据必须要知道 对方的fakeid。 5.知道对方的fa...
阅读全文

浙公网安备 33010602011771号