title: How Do I pass Values into an imagebutton click event in c#?
body: <p>Trying to pass some values into an imagebutton click event, something like this:</p>
  
  <pre><code>&lt;asp:ImageButton id="imagebutton1" runat="server" AlternateText="5 Star Luxury Villas in North Cyprus" ImageUrl="/download/1/luxury_villas.jpg" OnClick="ImageButton_Click('value1', 'value2')"/&gt;
  </code></pre>
  
  <p>then in code behind:</p>
  
  <pre><code>    protected void ImageButton_Click(object sender, ImageClickEventArgs e, string value1, string value2)
      {
         Response.Write(Value2);
      }
  </code></pre>