Nilesh Sukalikar

Nilesh Sukalikar

  • NA
  • 38
  • 17.8k

Server side button click event is not working from bootstrap

Jan 5 2016 10:01 PM
Hi,
 
I am trying to call server side click event from my bootstrap popup . I wanted to save data . But I am unable to fire click event on button click . I checked online and they says keep your text box and button inside form tag. I also tried that as well but not working ..
 
I have master page , on which form element is present and updatepanel.
  1. <div class="modal fade" id="exampleModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel">  
  2. <div class="modal-dialog" role="document">  
  3. <div class="modal-content">  
  4. <div class="modal-header">  
  5. <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>  
  6. <h4 class="modal-title" id="exampleModalLabel">Create State</h4>  
  7. </div>  
  8. <form>  
  9. <div class="modal-body">  
  10. <div class="form-group">  
  11. <label for="recipient-name" class="control-label">State</label>  
  12. <asp:TextBox class="form-control" ID="txtState" runat="server"></asp:TextBox>  
  13. </div>  
  14. </div>  
  15. <div class="modal-footer">  
  16. <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>  
  17. <asp:Button UseSubmitBehavior="false" ID="btnSave" runat="server" Text="Save" class="btn btn-primary tp" OnClick="btnSave_Click" />  
  18. </div>  
  19. </form>  
  20. </div>  
  21. </div>  
  22. </div>  

Answers (4)