When I create my server side buttons (asp:Button) I specify the click event by doing something like so:
OnClick="CancelProcessing_Click"
Now, I don't see any problems with that, but no method is created. I can't right click on it and "Go to Definition", I have to manually find it in my code beside. There's no benefit to having it there, and yet you can specify it there. Was this not the ASP.NET god's intentions?
Am I supposed to go into my code beside and do something like:
CancelProcessing.Click +=new EventHandler(CancelProcessing_Click);
When I press the += I get a nice intellesense popup that lets me tab to make the new EventHandler(CancelProcessing_Click); part, and if I press tab again I get the method created for me, with the proper EventArg variable type.
I almost feel like I need to have a method for each page, something like InitControlEvents which would contain all events on my page. I would get intellesense, plus I would be able to "Go to Definition" and refactor if I needed. The HTML view does none of that for me so seems really inferior.