asp.net page_load events firing on all pages at start up
Posted on 2011-03-09
Just starting out with asp.net 3.5 VS2008, vb.net
I've got a web site project with 3 pages, default,aspx, page2.aspx and page3.aspx.
default.aspx links to page2, page 2 to page 3, nothing fancy just a button link.
When I run the web site (asp.net development server) the page_load event on all three pages fires. Is this how asp.net works?
I would have expected the page_load event to fire on default.aspx when the project starts, then once the link button is pressed the page_load event on page2 to fire etc. etc.
The page_load event also fires correctly when the link button to that page is clicked.
Any help greatly appreciated.