0
Good morning,
I’m learning to program web now( studied C# last year in college and this year is web, so I wanted to get ahead ), I will program in Asp.net, I did all my "form" in bootstrap, visually stayed as I wanted, all right, I created the event click on the button to program it, but everything I do it sends the form and erases the data, any of the buttons that click, even without I program anything for them, talking to a colleague of mine he said this is on account of js , that by default sends the form, if there is more than one button all will send, and I need to replace this default ! just that I don’t know much about you, is that what he said? and how would I do? Follow the video showing what happens.
Edit your question and post your code. If you are using the element
button
and he’s inside the elementform
, add the attributetype="button"
– Valdeir Psr
You are probably using the same ID on all buttons!
– hugocsl