title: Rowcommand not firing for linkbutton in gridview?
body: <p>I have a gridview with a linkbutton. I set up a lightbox for the linkbutton using jquery and css.</p>
  
  <p>Linkbutton source code</p>
  
  <pre><code>&lt;asp:TemplateField HeaderText="Course" ItemStyle-CssClass="course" HeaderStyle-CssClass="course"&gt;
                  &lt;ItemTemplate&gt;
                      &lt;asp:LinkButton ID="Course_Name" runat="server"   Text='&lt;%# Eval("Course_Name__c") %&gt;' ForeColor="#666699" CommandName="course" CommandArgument='&lt;%# ((GridViewRow) Container).RowIndex %&gt;'  &gt;&lt;/asp:LinkButton&gt;
                  &lt;/ItemTemplate&gt;
                  &lt;HeaderStyle Font-Bold="True" /&gt;
  
                  &lt;HeaderStyle HorizontalAlign="Center"/&gt;
                  &lt;ItemStyle CssClass="course"&gt;&lt;/ItemStyle&gt;
              &lt;/asp:TemplateField&gt;
  </code></pre>
  
  <p>I have to set the content of lightbox in rowcommand event.I use the following code in rowdatabound.</p>
  
  <pre><code>  cname.CssClass = "popup-with-zoom-anim";
          cname.Attributes.Add("href", "#smalldialog");
  </code></pre>
  
  <p>The script is,</p>
  
  <pre><code>    &lt;script type="text/javascript"&gt;
      $(document).ready(function () {
          $('.popup-with-zoom-anim').magnificPopup({
              type: 'inline',
  
              fixedContentPos: false,
              fixedBgPos: true,
  
              overflowY: 'auto',
  
              closeBtnInside: true,
              preloader: false,
  
              midClick: true,
              removalDelay: 300,
              mainClass: 'my-mfp-zoom-in'
          });
  
          $('.popup-with-move-anim').magnificPopup({
              type: 'inline',
  
              fixedContentPos: false,
              fixedBgPos: true,
  
              overflowY: 'auto',
  
              closeBtnInside: true,
              preloader: false,
  
              midClick: true,
              removalDelay: 300,
              mainClass: 'my-mfp-slide-bottom'
          });
      });
  &lt;/script&gt;
  </code></pre>
  
  <p>But rowcommand not firing so lightbox displaying no data.Any help appreciated. </p>