R
rn5a
A Web Form has the following DataGrid:
<aspataGrid ID="dgProducts" OnEditCommand="AddToCart"
EnableViewState="true" runat="server">
<Columns>
</Columns>
</aspataGrid>
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.
<aspataGrid ID="dgProducts" OnEditCommand="AddToCart"
EnableViewState="true" runat="server">
<Columns>
</Columns>
</aspataGrid>
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.