What calls Page_Load and how does it do it?

后端 未结 5 1589
眼角桃花
眼角桃花 2020-12-15 17:17

Page_Load isn\'t a virtual method. What calls this method and how does it do it? Is it reflection or some other technique? Also how many events are handled this way?

5条回答
  •  星月不相逢
    2020-12-15 17:44

    In the page directive it says: Autoeventwireup="true"

    Thats what happens, its automatically wired up to the Load event... (and some other events like PreInit, Init, Unload etc.)

提交回复
热议问题