在Global中Application_Start添加如:复制代码代码如下:voidApplication_Start(objectsender,EventArgse){//在应用程序启动时运行的代码