Button Onclick does not work inside form

后端 未结 1 752
野的像风
野的像风 2021-01-22 17:34

Good Day

I am using an ASP.NET webform where I have wrapped the following button inside the form tags:

相关标签:
1条回答
  • 2021-01-22 17:51

    Add type="button" attribute to your button tag. Without it button works as submit.

    0 讨论(0)
提交回复
热议问题