title: Pass an ID to OnClick event with Repeater control?
body: <p>Here is my screen:  </p>
  
  <p><img src="https://i.stack.imgur.com/dCYuN.jpg" alt="enter image description here"></p>
  
  <p>Here is my code for the ItemTemplate in the Repeater:</p>
  
  <pre><code>&lt;ItemTemplate&gt;
      &lt;div style="float: left; overflow: hidden; display: inline-block; border-style: solid; margin: 5px; background-color: Silver"&gt;
          &lt;div style="text-align:center"&gt;
              &lt;asp:Label ID="lblImage" runat="server" Text='&lt;%# DataBinder.Eval(Container.DataItem, "image") %&gt;'&gt;&lt;/asp:Label&gt;
          &lt;/div&gt;
          &lt;asp:Image runat="server" ID="image1" Width="250px" Height="250px" ImageUrl='&lt;%# DataBinder.Eval(Container.DataItem, "url") %&gt;' /&gt;
          &lt;div style="text-align: center;"&gt;
              &lt;asp:Button runat="server" ID="btnNew" Text="New" /&gt;
              &lt;asp:Button runat="server" ID="btnOriginal" Text="Original" /&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  </code></pre>
  
  <p>The Repeater uses a dataset in my program to populate the ItemTemplate's label and image controls. There's another field in my dataset called <code>graphicID</code>. I'd like to, somehow, pass the value in that field to the 'Original' button, so that if a user presses that button, that particular <code>graphicID</code> is passed into the click event. Does this make sense?</p>
  
  <p>For instance, the second image is Captain Harlock. The <code>graphicID</code> for this image is <code>93</code>.  If the user presses the Original button under Captain Harlock, I want to pass <code>93</code> to the <code>onClick</code> event. I'm not sure how to do this, though. If someone could point me in the right direction, I'd greatly appreciate it!</p>