When to use Application_Start vs Init in Global.asax?

后端 未结 2 1125
夕颜
夕颜 2020-12-04 12:16

I am wondering under what circumstances I should be putting application initialisation code in Application_Start() vs Init() in my Global.asa

2条回答
  •  盖世英雄少女心
    2020-12-04 12:41

    Yes

    There are differences between them. Application_Start() event is called just one time while Init() method is called on each time when instance of the application is created.

提交回复
热议问题