title: Get ListView item when button in row is clicked
body: <p>I have a <code>ListView</code> that creates a table. Each row in the table has two buttons - Delete and Modify. I'm firing a click event for each button but I'm not sure how to get a handle to the data in the row that the button was clicked.</p>
  
  <p>aspx</p>
  
  <pre><code>&lt;asp:ListView runat="server" ID="usersListView"&gt;
      &lt;LayoutTemplate&gt;
          &lt;table class="table table-striped"&gt;
              &lt;thead&gt;
                  &lt;tr&gt;
                      &lt;th&gt;User Name&lt;/th&gt;
                      &lt;th&gt;Email&lt;/th&gt;
                      &lt;th&gt;Role&lt;/th&gt;
                      &lt;th&gt;Actions&lt;/th&gt;
                  &lt;/tr&gt;
              &lt;/thead&gt;
              &lt;tbody&gt;
                  &lt;asp:PlaceHolder runat="server" ID="groupPlaceHolder"/&gt;
              &lt;/tbody&gt;
          &lt;/table&gt;
      &lt;/LayoutTemplate&gt;
      &lt;GroupTemplate&gt;
          &lt;tr&gt;
              &lt;asp:PlaceHolder runat="server" ID="itemPlaceHolder"/&gt;
          &lt;/tr&gt;
      &lt;/GroupTemplate&gt;
      &lt;ItemTemplate&gt;
          &lt;td&gt;&lt;%# Eval("user.UserName") %&gt;&lt;/td&gt;
          &lt;td&gt;&lt;%# Eval("user.Email") %&gt;&lt;/td&gt;
          &lt;td&gt;&lt;%# Eval("roles") %&gt;&lt;/td&gt;
          &lt;td&gt;
              &lt;button runat="server" id="modify" class="btn btn-mini" title="Modify" onclick="modify_OnClick"&gt;
                  &lt;i class="icon-edit"&gt;&lt;/i&gt;
              &lt;/button&gt;&amp;nbsp;
              &lt;button runat="server" id="delete" class="btn btn-mini" title="Delete" onclick="delete_OnClick"&gt;
                  &lt;i class="icon-trash"&gt;&lt;/i&gt;
              &lt;/button&gt;
          &lt;/td&gt;
      &lt;/ItemTemplate&gt;
  &lt;/asp:ListView&gt;
  </code></pre>
  
  <p>aspx.cs</p>
  
  <pre><code>public void delete_Onclick(object sender, EventArgs e) {
  
  }
  
  public void modify_Onclick(object sender, EventArgs e) {
  
  }
  </code></pre>