Im trying to put the majority of my page loading logic in the Page_Load event handler. But the order of execution is making this almost impossible for me. I have noticed from using the Visual Web Developer 2008 debugger that the Page_Load event is executed before one of my event handlers, specifically, a btn_Click event. This is causing me big headaches in my code behind file for the webpage. How can I be expected to properly construct a web page if I have to do it prior to knowing what the viewer of the webpage has done?
Let me give an example of what I am trying to do. I am simply trying to display a small window of images on the screen along with "previous" and "next" buttons to navigate through the pictures stored in a folder on the hard drive. How am I supposed to construct the page in the Load_Event if the logic that sets the index of the pictures to be displayed is only updated after the Page_Load event? This seems&nb ...
Go to the complete details ...