Note that there are some explanatory texts on larger screens.

plurals
  1. POPage_Load not being called on re-navigation
    primarykey
    data
    text
    <p>I am having a strange problem. Here is the scenario</p> <p>Here are my files:</p> <ol> <li><strong>Project1.aspx</strong></li> <li><strong>Project2.aspx</strong></li> </ol> <p>They are set up the exact same, including their Page_Load functions:</p> <pre><code>Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) Handles Me.Load If (Not Page.IsPostBack) Then setPrevIndex(-1) ... End If End Sub </code></pre> <p>They are both set up this way.</p> <p>Here is where I am running into a problem. When I navigate to either of these pages, i need to make sure that prevIndex is set to -1 (via the function). </p> <ul> <li>For <strong>Project1.aspx</strong> when I navigate to the page, the Page_Load fires.</li> <li>For <strong>Project1.aspx</strong> when I refresh the page, the Page_Load fires.</li> <li>For <strong>Project1.aspx</strong> when I press "Go" in my browsers navigation bar, traveling back to the current page, the Page_Load fires.</li> </ul> <hr> <ul> <li>For <strong>Project2.aspx</strong> when I navigate to the page, the Page_Load fires.</li> <li>For <strong>Project2.aspx</strong> when I refresh the page, the Page_Load fires.</li> <li>For <strong>Project2.aspx</strong> when I press "Go" in my browsers navigation bar, traveling back to the current page, <strong>the Page_Load doesn't fire at all!</strong> The function isn't even called.</li> </ul> <p>Any ideas why??? What would cause this?</p> <p>Please ask for clarification.</p> <p><strong>Update:</strong></p> <p>When I press "Go" in the URL pointing to the same URL, it seems like the masterpage is the only thing that re-loads, but the Load_Page event doesn't even fire... </p> <p>Any other suggestions?</p> <p>Thanks, E</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload