Assuming the control that you're clicking has its AutoPostBack property set
to true, then when you click the control, you'll post back. When you post
back, whether by AutoPostBack, or by clicking some other control that causes
the form to be submitted, the process is the same. Page_Load runs first,
and then the event handlers for any pending events occur.
Theoretically, you could handle the entire postback in your Page_Load rather
than in your OnClick handler, but you should use the OnClick event for
processing code that is dependent on the click.
Dale
"Random" <ci*******@hotmail.com> wrote in message
news:eo**************@TK2MSFTNGP10.phx.gbl...
Is there considered a preferred method for handling the POST from an
ASP.NET web page? I'm a veteran with classic ASP, so have always used
Request.ServerVariables("REQUEST_METHOD") to check for POST. In choosing
between the new IsPostBack and the server side processing for the button
OnClick event, what criteria would be used to decide which method to use?
Or are they both equal, process-wise?