title: Asp image button click event not firing for all row when it is inside a update panel which is inside a grid view
body: <p>I am facing a strange problem. Inside a grid view I have some image button which is again inside update panel to load some calendar content with partial post back without any page refresh.
  This partial postback is working for first few rows but after few rows, lets say around 15 rows the button click event not hitting and only breakpoint going in page load event and the the entire page refresh.</p>
  <p>there are huge data in each row but I am for example showing the update panel structure. please help me to fix the issue . I have tried various way to fix it but still facing same issue.</p>
  <pre><code>&lt;asp:GridView ID=&quot;GVSales&quot; runat=&quot;server&quot; AllowPaging=&quot;false&quot; AutoGenerateColumns=&quot;false&quot; DataKeyNames=&quot;UserId&quot; BackColor=&quot;#FFFFCC&quot; EmptyDataText=&quot;No salesman selected to show&quot; OnRowDataBound=&quot;GVSales_OnRowDataBound&quot; OnDataBound=&quot;GVSales_AfterDataBound&quot;&gt;
       &lt;PagerSettings Visible=&quot;false&quot; /&gt;
       &lt;AlternatingRowStyle BackColor=&quot;#99CCFF&quot; /&gt;
       &lt;Columns&gt;
       &lt;asp:BoundField DataField=&quot;GroupName&quot; Visible=&quot;false&quot; /&gt;
       &lt;asp:TemplateField&gt;
       &lt;ItemTemplate&gt;
       &lt;table width=&quot;100%&quot; border=&quot;1px&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;color: Black; font-family: Arial; text-align: center&quot;&gt;
       &lt;tr&gt;
       &lt;td colspan=&quot;18&quot; style=&quot;text-align: left&quot;&gt;
       &lt;asp:UpdatePanel ID=&quot;UpdatePanel2&quot; runat=&quot;server&quot; UpdateMode=&quot;Conditional&quot;&gt;
       &lt;ContentTemplate&gt;
       &lt;div&gt;
       &lt;div id=&quot;divNavigateCal&quot; runat=&quot;server&quot; style=&quot;float: right; display: none&quot;&gt;
       &lt;asp:HiddenField ID=&quot;hdnDaydiff&quot; runat=&quot;server&quot; Value=&quot;1&quot; /&gt;
       &lt;div class=&quot;blink&quot; id=&quot;BlinkLoad&quot; style=&quot;width: 100px; padding-top: 10px; vertical-align: top; display: none&quot;&gt;Please Wait...&lt;/div&gt;
       &lt;asp:ImageButton ID=&quot;imgBtnPrevious&quot; AutoPostback=&quot;false&quot; runat=&quot;server&quot; class=&quot;Previous&quot; CommandArgument='&lt;%# Eval(&quot;UserId&quot;)%&gt;' Customid='&lt;%# Eval(&quot;UserId&quot;) %&gt;' OnClientClick='&lt;%# &quot;GetCustomerID(&quot; + Eval(&quot;UserId&quot;) + &quot;);&quot; %&gt;' ImageUrl=&quot;~/admin/images/cal_previous.gif&quot; OnClick=&quot;imgBtnPrevious_Click&quot; /&gt;
       &lt;asp:ImageButton ID=&quot;imgBtnNext&quot; runat=&quot;server&quot; class=&quot;Next&quot; CommandArgument='&lt;%# Eval(&quot;UserId&quot;)%&gt;' Customid='&lt;%#  Eval(&quot;UserId&quot;) %&gt;' OnClientClick='&lt;%# &quot;GetCustomerID(&quot; + Eval(&quot;UserId&quot;) + &quot;);&quot; %&gt;' ImageUrl=&quot;~/admin/images/cal_next.gif&quot; OnClick=&quot;imgBtnNext_Click&quot;/&gt; 
       &lt;/div&gt;
       &lt;input type=&quot;button&quot; class=&quot;ShowCalendar&quot; value=&quot;Show/Hide Calendar&quot; runat=&quot;server&quot; data-id='&lt;%# Eval(&quot;UserId&quot;)%&gt;' /&gt; &lt;asp:Label ID=&quot;lbl_alert1&quot; runat=&quot;server&quot; Text=&quot;Started this week with low meetings&quot; ForeColor=&quot;Red&quot; Font-Bold=&quot;true&quot; Width=&quot;300&quot; Visible='&lt;%# (Convert.ToBoolean(Eval(&quot;Alert1&quot;))) %&gt;'&gt;&lt;/asp:Label&gt;
       &lt;asp:Label ID=&quot;Label1&quot; runat=&quot;server&quot; Text=&quot;Did not create 7 meetings on monday.&quot; ForeColor=&quot;Red&quot; Font-Bold=&quot;true&quot; Width=&quot;300&quot; Visible='&lt;%# (Convert.ToBoolean(Eval(&quot;Alert2&quot;))) %&gt;'&gt;&lt;/asp:Label&gt; 
          &lt;table id=&quot;calendar&quot;&gt;
          &lt;tr&gt;
          &lt;td&gt;
          &lt;/td&gt;
          &lt;/tr&gt;
          &lt;/table&gt;
          &lt;/div&gt;
          &lt;/ContentTemplate&gt;
       &lt;Triggers&gt;                                                           
       &lt;asp:AsyncPostBackTrigger ControlID=&quot;imgBtnPrevious&quot; EventName=&quot;Click&quot; /&gt; 
       &lt;asp:AsyncPostBackTrigger ControlID=&quot;imgBtnNext&quot; EventName=&quot;Click&quot; /&gt; 
       &lt;/Triggers&gt;
       &lt;/asp:UpdatePanel&gt;
  &lt;/td&gt;
  &lt;/tr&gt;
  &lt;/table&gt;
   &lt;/ItemTemplate&gt;
   &lt;/asp:TemplateField&gt;
   &lt;/Columns&gt;
   &lt;/asp:GridView&gt;
  </code></pre>
  <p>Here I am updating the table calendar content with partial postback for button click event of  imgBtnPrevious imgBtnNext which has some calendar like structure.
  This code is working fine for 1st 14 - 15 rows but this issue coming after that.</p>
  <p>Note:
  there are other huge data in each row but here i have shown only the update panel structure for example.</p>
  <p><strong>UPDATE</strong></p>
  <p><em><strong>I have investigated the issue further and disabled all update panels to check if update panel is causing issue but I found it not due update panel. The buttons click event is not firing after 14 -15 rows. even tried with row command and still same. what may be the root of this issue? any solution? please help. Whenever i click the button it just reload the page but click event is not hitting the debugger.</strong></em></p>