My application runs from a single page (default.aspx) and loads custom controls based on what the user selects (this is done in the LoadPage event).
The problem is that the FIRST time some new controls are loaded onto the page and a button is clicked, the page is NOT firing the Click event. This also happens when using a GridView and other controls.
However, if I simply reload the page a second time, the events are fired properly. (this works successfully every time)
Two questions: 1) Why would this occur? 2) How can I troubleshoot it better? I've tried checking the Request.Form(__EVENTTARGET) (which is blank)
There are times when it works properly which suggests a PostBack issue - but it's not obvious.