title: Button id as an event handler
body: <p>I am creating 7 buttons on the fly</p>
  
  <p>when i create the buttons i am trying to have an event handler than can deal with all clicks in one method via a switch. Ideally i want to pass an id with the button that indicates what was clicked, opposed to this solution of </p>
  
  <pre><code>void pdfButton_Click(object sender, EventArgs e)
  {
      Button b = (Button)sender;
      Console.WriteLine(b.Text);
  }
  </code></pre>
  
  <p>as all of the buttons using this event handler have the same text. I have a unique id associated witht the buttons but no idea how to send them</p>
  
  <p>thanks</p>