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

前端 未结 7 1784
故里飘歌
故里飘歌 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 23:12

    If you are redirecting, it's possible the client is caching the response. In order to get past this you might add an extra query parameter that simply holds the time.

    This is usually enough to get past most pages caching mechanisms.

提交回复
热议问题