D
DC
In a book sample I am working through in ASP.NET, a simple Hello World works
fine, but the order of events has me confused.
The sample involves a Button control and the onClick event. On click, the
page reloads and voila, hello world is written (I understand this part).
However, when I set a breakpoint on both Page_Load and onClick, Page_Load is
accessed first, stepping through takes me to onClick.
But "Hello World" is written outside of all HTML elements. I was under the
impression that on Page_Load the HTTP stream is persisted until processing
of events is completed, so why isnt Hello World written in the HTML elements
(specifically, the BODY tag)?
Thank you!
fine, but the order of events has me confused.
The sample involves a Button control and the onClick event. On click, the
page reloads and voila, hello world is written (I understand this part).
However, when I set a breakpoint on both Page_Load and onClick, Page_Load is
accessed first, stepping through takes me to onClick.
But "Hello World" is written outside of all HTML elements. I was under the
impression that on Page_Load the HTTP stream is persisted until processing
of events is completed, so why isnt Hello World written in the HTML elements
(specifically, the BODY tag)?
Thank you!