title: How to get the ID of a button created dynamically when it is clicked? vb.net
body: <p>I created a table with buttons with different IDs like below:</p>
  
  <pre><code>                ButtonEdit.Text = "Edit"
                  ButtonEdit.ID = OrderID
                  TBLCell.Controls.Add(ButtonEdit)
  
                  TBLCell.HorizontalAlign = HorizontalAlign.Center
                  TBLCell.Width = 100
                  TBLCell.BorderColor = System.Drawing.Color.Black
                  TBLCell.BorderWidth = 1
                  TBLRow.Cells.Add(TBLCell)
                  TBLCell = New TableCell
  </code></pre>
  
  <p>But when I click one of these buttons I want to get the Id in :</p>
  
  <pre><code>If IsPostBack = True Then
  
  // here i want to get id
  
  end if
  </code></pre>
  
  <p>But, how to get the Id for the selected button?</p>