title: LinkButton CommandName not working
body: <p>I have a link button ( the text of the link button is edit )   in a gridview , i give it a commandname call modify </p>
  
  <p>So in my design the code is :</p>
  
  <pre><code>   &lt;asp:TemplateField&gt;
        &lt;ItemTemplate&gt;
            &lt;asp:LinkButton ID="LinkButton1" runat="server" CommandName="modify"&gt;Edit&lt;/asp:LinkButton&gt;
             &lt;/ItemTemplate&gt;
     &lt;/asp:TemplateField&gt;
  </code></pre>
  
  <p>And in my code behind is :</p>
  
  <pre><code>  protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e)
  {
      LinkButton linkBtn = (LinkButton)sender;
  
      if (linkBtn.CommandName == "modify") // tried linkBtn.CommandArguemtn , doesn't help
      {
          Panel1.Visible = true;
          int index = Convert.ToInt32(e.CommandArgument);       
  
          Label login = (Label)GridView1.Rows[index].Cells[0].FindControl("Label1");
         //Things i want to do 
  
      }
  }
  </code></pre>
  
  <p>As you can see i set the panel to be visible , but it won't appear ... am i doing the correct way? i know of an alternative which is to use the default edit button generated , but i don't want to do that . I am trying to put a link button in a gridview and click on the link button and then panel ( consists of textboxs controls ) should appear then make changes of the gridview data in the panel .</p>