In visual studio 2008 when I drag and drop asp controlXXX on aspx page. Property page for this control, does not show event handlers button. It can reappear after switching to designer view but then disappears again. Screenshot attached.
Yes, that's annoying, but it works probably only in designer. But you can still add event handlers manually
in html add onclick property and write name of the method
<asp:ImageButton ID="btnAdd" runat="server" onclick="btnAdd_Click" />
and in code-behind add method with two parameters of types: (object, EventArgs) like this:
protected void btnAddTag_Click(object sender, ImageClickEventArgs e)
{
}
or you can also add event handler in Page_Init method
btnAdd.Click+=new ImageClickEventHandler(btnAdd_Click);
(this will also generate automatically the method, only after += press TAB twice)
what I have check and analyzed is, for any control you add in .aspx page and try to view properites and it is not showing Eventhandler section. you then go the design view and view properties it is showing event handler now and now then if you go to .aspx page try to view properties, event handler section are now there.
Might be visual studio cache the property section for specific control and if you try to view properties from .aspx page, then it is showing but not confirm.