<asp:Button ID="btnEditAdd" Text="Edit"
CausesValidation="false" CommandName="Edit" Visible="false" runat="server" OnCommand="btnEditAdd_Click"/>
How come the above control's got both OnCommand and CommandName attribute? When that button is clicked what method is called ? I don't why I am confused.
I mean the repeater's ItemCommand event is fired or btnEditAdd_Click is called??
I thot they both serve the same purpose.