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

前端 未结 7 1783
故里飘歌
故里飘歌 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.

    0 讨论(0)
提交回复
热议问题