Click here to Skip to main content
16,019,349 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have implemented 3 user controls to on page. The page has a master page also. All the three user controls has its own buttons and validations. I created a break point on the code behind of the button click. When I click on the the button the break point is not triggering. This issue is exist for all the buttons inside the user controls of the the page.

Here is my aspx code for one control.

ASP.NET
<div class="col-sm-2 col-xs-12 cart-border-right">
                  <span class="visible-xs span-data-item">Quantity : </span>
                    <div class="input-group btn-block">
                      <asp:TextBox ID="txtQty" runat="server" MaxLength="2" CssClass="form-control" Text="1" ValidationGroup="s" />
                <asp:FilteredTextBoxExtender ID="fte1" runat="server" FilterType="Numbers" TargetControlID="txtQty"></asp:FilteredTextBoxExtender>
                      <span class="input-group-btn">
                      <asp:LinkButton ID="lnkUpdate" runat="server" OnClick="lnkUpdate_Click" ValidationGroup="s" CausesValidation="true"
                          data-toggle="tooltip" title="" data-original-title="Update" CssClass="btn btn-primary"><i class="fa fa-refresh"></i></asp:LinkButton>
                      <asp:LinkButton ID="btnRemove" runat="server" OnClick="btnRemove_Click" ValidationGroup="s" CausesValidation="true"
                          data-toggle="tooltip" title="" data-original-title="Remove" CssClass="btn btn-primary"><i class="fa fa-times-circle"></i></asp:LinkButton>
                      </span></div>
                  </div>


Please help me to fix this issue. Thanks in advance.
Posted
Comments
Richard Deeming 28-Jan-16 8:18am    
Are the user controls defined in the markup of the page, or are you creating them from the code-behind?

Is there any data-binding involved?

Try writing a message to the trace output[^] from the event handler to see whether it's just the breakpoint not triggering, or if the event handler isn't getting called at all.
Rathlal Ramesh 29-Jan-16 1:07am    
Hi Richard,

First of all thanks for the reply.

There is no data-binding involved.
The controls are dynamically loading from code behind.
I compiled it by removing the update panel from all the controls. Then it works fine. But how can I implement it using the update panel?
Is there any issue with the update panel when the control are dynamically loaded?
Richard Deeming 29-Jan-16 8:39am    
Then you need to show the code that's creating the controls dynamically.

NB: Don't try to post the code in a comment. Click "Improve question" and add the code at the bottom of your question, wrapped in <pre>...</pre> tags.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900