Hi All,
I am having a strange problem. Here is the scenario
Here are my files:
- Project1.aspx
- Project2.aspx
They are set up the exact same, including their Page_Load functions:
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
They are both set up this way.
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).
- For Project1.aspx when I navigate to the page, the Page_Load fires.
- For Project1.aspx when I refresh the page, the Page_Load fires.
- For Project1.aspx when I press "Go" in my browsers navigation bar, traveling back to the current page, the Page_Load fires.
- For Project2.aspx when I navigate to the page, the Page_Load fires.
- For Project2.aspx when I refresh the page, the Page_Load fires.
- For Project2.aspx when I press "Go" in my browsers navigation bar, traveling back to the current page, the Page_Load doesn't fire at all! The function isn't even called.
Any ideas why??? What would cause this?
Please ask for clarification.
Update:
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...
Any other suggestions?
Thanks, E