I just spent a long time figuring out a bug. Normally I use ASP.NET server controls. I have been working with a more JavaScript. I had a button HTML element on the page. I narrowed it down to the fact that the page submitted and reloaded when it was not supposed to.
After I added a type="button" to the button element, it stopped refreshing. After finding this article on StackOverflow, I have decided to use an input element specifying type="button"
Why do good people suffer?
11 months ago
No comments:
Post a Comment