I have a form on ASP .NET page, with button onclick event attached to doPostBack function.
However when I click that button form gets submitted twice. Server side debugger enters Page_Load twice, Fiddler records two aspx requests etc, there are no 302 redirects etc, it’s pretty straightforward page.
When I set breakpoint in __doPostBack function it’s also called once (perhaps it’s just an illusion).
Is there a chance to debug client side even more deeper to find the issue?
Thanks, Paweł
Ok. got it: input type=”image” had
When I modified it to:
and two requests issue went away. Only one request was recorded by Fiddler, Page_Load is called once and everything is neat.
So be careful when using HTML elements that cause automatic form submission on click 😉
Thanks, Paweł