title: OnClick Event of EditButton in GridView
body: <p>I am using the <code>OnClick</code> event of the <code>EditButton</code> in the <code>GridView</code></p>
  
  <pre><code>protected void editclick(object sender, EventArgs e)
  {
      try
      {
          Button EditButton = (Button)gvUserMaster.FindControl("edit_btn");
          tblAddEdit.Visible = true;
      }
      catch(Exception ex)
      {
      }
  }
  </code></pre>
  
  <p>But I am getting the Exception :</p>
  
  <blockquote>
    <p>Multiple controls with the same ID 'lblUserName' were found. FindControl requires that controls have unique IDs.</p>
  </blockquote>
  
  <p>I tried using foreach loop but that too didn't work.</p>