Why is Page_Load not firing after coming back from another page using ASP.NET - ergo epic embarrassment :)

前端 未结 7 1791
故里飘歌
故里飘歌 2021-02-14 22:15

Let\'s say I have two pages on the same ASP.NET C# WebSite.

  • Page1.aspx does things in the Page_Load event
  • I navigate to Page2.aspx using the menu
7条回答
  •  傲寒
    傲寒 (楼主)
    2021-02-14 22:52

    When you navigate to a page using the Back button, the page is reloaded from memory, and no request is sent to the server.

    You can confirm this using Fiddler.

    I'm not sure if this is true in all browsers.

提交回复
热议问题