摘要:
1、在Global.asax文件中 的Application_Start 中定义一个线程 void Application_Start(object sender, EventArgs e) { // 在应用程序启动时运行的代码//定义一个线程 System.Threading.Thread LoadServiceData = new System.Threading.Thread(new System.Threading.ThreadStart(LoadFromWebservice)); LoadServiceData.Start(); ... 阅读全文