Nilesh Patil

Nilesh Patil

  • NA
  • 3k
  • 115.2k

UpdatePanel Not works fine

Oct 30 2017 1:58 AM
Hi,
 
When I use Button inside Update panel it doesnot fire click event but outside the update panel it works.
 
here is the code
  1. <asp:UpdatePanel ID="updatePanel1" runat="server" UpdateMode="Conditional"  
  2. ChildrenAsTriggers="true">  
  3. <ContentTemplate>  
  4. <asp:Button ID="LinkButton1" runat="server" class="btn btn-primary" Style="color: #fff; background-color: #337ab7; border-color: #2e6da4; display: inline-block; padding: 6px 8px; margin-bottom: 0; border: 1px solid transparent; border-radius: 4px;"  
  5. OnClick="LinkButton1_Click" Text='<%#Eval("Row#") %>' />  
  6. </ContentTemplate>  
  7. <Triggers>  
  8. <asp:AsyncPostBackTrigger ControlID="LinkButton1" EventName="Click" />  
  9. </Triggers>  
  10. </asp:UpdatePanel>

Answers (5)