Kasuni Abegunawardana

Kasuni Abegunawardana

  • NA
  • 211
  • 121.7k

My Button Click it not Working

Nov 13 2017 2:02 AM
Hi all,
 
I made an asp.net project using bootstrap template. When I add a button it doesn't work why is that?
 
I changed
 
Causes Validation = "false"
 
But still, it doesn't work?
 
I hope it is in my bootstrap template?is it or how can I fix that?
  
Thank you in advance.
  1. using System;  
  2. using System.Collections.Generic;  
  3. using System.Linq;  
  4. using System.Web;  
  5. using System.Web.UI;  
  6. using System.Web.UI.WebControls;  
  7. namespace Food_Calorie_Calculator__Final_Project  
  8. {  
  9. public partial class index2 : System.Web.UI.Page  
  10. {  
  11. protected void Page_Load(object sender, EventArgs e)  
  12. {  
  13. }  
  14. protected void btn_calculate1_Click(object sender, EventArgs e)  
  15. {  
  16. Response.Write("<script>alert('Successfully Created!!');</script>");  
  17. }  
  18. protected void btn_calculate2_Click(object sender, EventArgs e)  
  19. {  
  20. Response.Write("<script>alert('Successfully Created!!');</script>");  
  21. }  
  22. }  
  23. }  

Answers (7)