<asp:DataGrid ID="dgProducts" OnEditCommand="AddToCart"
EnableViewState="true" runat="server">
<Columns>
<%-- some TemplateColumns come here--%>
<asp:EditCommandColumn EditText="ADD TO CART" HeaderText="ADD TO CART"/
></Columns>
</asp:DataGrid>
The button/link that gets created by the EditCommandColumn - how do I
get its ID?
Since the DataGrid is bound to a database table, each of the rows have
the *ADD TO CART* button/link. How do I get the ID of each of these
*ADD TO CART* buttons/links?
Actually my main intention is to disable the *ADD TO CART* buttons/
links immediately after they are clicked so as to ensure that users
don't repost the same data again & again.