摘要: void objTimer_Elapsed(object sender, ElapsedEventArgs e) { GlenetCms.UI.GetInfo.InsertInfo(); } void Application_Start(object sender, EventArgs e) { //在应用程序启动时运行的代码 System.Timers.Timer timer = new System.Timers.Timer(1000 * 3600);//执行间隔时间,单位为毫秒 ... 阅读全文
posted @ 2012-01-11 16:30 红鲤鱼与驴与绿鲤鱼 阅读(263) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// 获取整个页面内容 /// </summary> /// <param name="url"></param> /// <returns></returns> public static string GetPage(string url,string type) { HttpWebRequest webRequest = (HttpWebRequest)WebRequest.Create(url); HttpWebResponse ... 阅读全文
posted @ 2012-01-11 15:32 红鲤鱼与驴与绿鲤鱼 阅读(207) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// 获取字符串中指定字符间的字符串 /// </summary> /// <param name="str">要截取的字符串</param> /// <param name="start">开始字符串</param> /// <param name="last">结束字符串</param> /// <param name="n">类型</param> /// < 阅读全文
posted @ 2012-01-11 15:31 红鲤鱼与驴与绿鲤鱼 阅读(1250) 评论(0) 推荐(0) 编辑