I have this code in a .ascx web user control.
<table border="0" cellspacing="0" cellpadding="0">
<asp:Button id="btnSubmit" runat="server" OnClick="Submit_Clicked" cssClass="btnAddToCart"></asp:Button>
It is added to a .aspx page, (the control, not the code). It is called with this code:
<td align="right" valign="bottom">
<CommerceSite:AddToCart id="addToCartCtl" Qty="1" runat="server"></CommerceSite:AddToCart>
How do I rewrite the code so that when a user clicks on an image of a product (on the aspx page), the AddToCart code is activated, as opposed to the current setup where I user can see the image, but has to click the the AddToCart button (on the aspx page).