Bineeshcp Viswanath

Bineeshcp Viswanath

  • NA
  • 140
  • 39.3k

Button click event not firing in second click

Jan 29 2019 3:39 AM
Hello All,
 
I have a issue in my asp.net project.
 
In button click event, the first button click in doing task to update records and the same function not fire when I click the same button for the second time. I did tested with putting breakpoint in Page_Load event. Not trigger this event also.
  1. <asp:Button ID="btnUpdate" type="submit" runat="server" Text="Update" OnClick="btnUpdate_Click" />  
  1. protected void btnUpdate_Click(object sender, EventArgs e)  
  2. {  
  3. // This event not firing in second time button click  
  4. try  
  5. {  
  6. if (tbxCustomerID.Text != "" && ViewState["hasLoadedCustomerDetails"] != null)  
  7. {  
  8. UpdateLoanStatus();  
  9. }  
  10. }  
  11. catch (Exception ex)  
  12. {  
  13. ex.Message.ToString();  
  14. }  
  15. }
There are other button which is firing in multiple time without round trip.
 
I need your help on why this happen..

Answers (2)