Why LinkButton Works but Button Does Not?

Sperfedorop

New Member
Hey I have two buttons that are almost identical but one will fire the subroutine and one will not. In this case the link button works but the regular button does not. Anybody have any ideas?<BR><asp:DataList id=results onitemcommand="results_addItem" runat="server"><BR><BR><asp:LinkButton id=btnBuy Text="Buy" CommandName="buy" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "SKU") %>' runat="server" /><BR><BR><asp:Button id=btnSell Text="Sell" CommandName="sell" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "SKU") %>' runat="server" /><BR><BR></asp:datalist>
 
Back
Top