Good Day
I am using an ASP.NET webform where I have wrapped the following button inside the form tags:
Add type="button" attribute to your button tag. Without it button works as submit.
type="button"
button
submit