title: Button click event is not firing in asp.net gridview control
body: <pre><code> &lt;asp:GridView ID="gvInaciveQuestions" runat="server" AutoGenerateColumns="False" OnRowCommand="gvInaciveQuestions_RowCommand"&gt;
              &lt;Columns&gt;
                  &lt;asp:TemplateField HeaderText="Selelct"&gt;
                          &lt;ItemTemplate&gt;
                              &lt;asp:Button ID="btnactive" runat="server"  Text="Active" onClick="btnactive_Click" /&gt;
                          &lt;/ItemTemplate&gt;
                      &lt;/asp:TemplateField&gt;                   
                  &lt;asp:TemplateField HeaderText="Question"&gt;
   &lt;/asp:Gridview&gt;
  </code></pre>
  
  <p>I have added Itemtemplate as Button but it is not firing <code>onclick</code> event.</p>
  
  <p>Could please any one suggest me ?</p>