title: How to access a button inside a listview? specifically using the button_click to carry out an action
body: <p>I have this simplified code:</p>
  
  <pre><code>&lt;asp:ListView ID="ListView1" runat="server" DataSourceID="sqldatasource1"&gt;
      &lt;ItemTemplate&gt;
          &lt;asp:Button ID="ButtonTest" runat="server" BackColor="Silver" Text="Add to Cart" /&gt;
    &lt;/ItemTemplate&gt;
    &lt;/asp:ListView&gt;
  </code></pre>
  
  <p>I am trying to run some code behind the button but I don't know how. I can't access it within the listview. Not that this is important, but im trying to get information from the current listview(the product ID) and pass it to the next page. </p>
  
  <p>Anybody know how to approach this, with the exact code? Thanks!</p>