I was wondering about performance difference between :
this.BTN_LogIN.Click += new EventHandler(BTN_LogIN_Click);
vs
<asp:Button runat="server" ID="BTN_LogIN" onclick="BTN_LogIN_Click" >
I think the latter is using reflection at runtime to decide which functiuon to go , hence its slower.
is it right ?
As I understand it, both will perform identically, since Asp.Net uses reflection to figure out which button was clicked in order to raise the appropriate click event.