摘要: web网站里面,需要每隔1分钟,执行一个任务,并且一直保持这个定时执行状态,可以用如下一个方法:以下代码是Global.asax.cs 的全部代码。using System;using System.Xml;namespace Web.SSART.Site{ public class Global : System.Web.HttpApplication { protected void Application_Start(object sender, EventArgs e) { // 在应用程序启动时运行的代码 ... 阅读全文
posted @ 2013-12-27 11:41 程序猿网友666 阅读(1872) 评论(2) 推荐(0) 编辑
摘要: /// /// 创建XML /// /// public static XDocument CreateXml() { XmlDocument xmldoc = new XmlDocument(); //加入XML的声明段落 XmlNode xmlnode = xmldoc.CreateNode(XmlNodeType.XmlDeclaration, "", ""); xmldoc.AppendChild(xmlnode); ... 阅读全文
posted @ 2013-12-27 11:36 程序猿网友666 阅读(131) 评论(0) 推荐(0) 编辑