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

前端 未结 7 1788
故里飘歌
故里飘歌 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:53

    Please run the following code to disable the page cache in firefox.

    Response.AppendHeader("Cache-Control", "no-store");
    

    Apply this in page load of master page.

提交回复
热议问题