I'm a bit confused about the order of events when posting back to the server.
I have a registration page which accepts user name, address etc. There's a Register button and a Reset button.
There are also validation controls that I set on Load when the page loads for the first time, but not on postbacks and the Register button of course posts back and everything runs just fine when it is clicked.
The problem arises when I hit the reset button in which I clear all the fields, but the event for btnRegister_Click never fires before going through the load event. I understand that the btnRegister_Click is the last to fire of all the events coming from the form to the server, so my question is what is the best way to determine which button was clicked? I can't seem to find an answer to that in the wonderful MSDN documentation.
Thanks in advance for your insights.