Quantcast
Channel: ASP.NET AJAX + Ajax Control Toolkit (ACT)
Viewing all articles
Browse latest Browse all 5678

HTML element causes double postback in Web Form

$
0
0

I have a web form that I put a styled CSS <button> element on it. When I wired up the OnServerClick property to my codebehind, it gets called twice when the button is clicked. This does not happen on the <asp:Button> control. This seems to only pertain to the button element.

I found this post

https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=102775&wa=wsignin1.0

that states that the issue was verified in Visual Studio .NET 2005 (build:RTM.50727.42) and that is had been fixed. I have Version 8.0.50727.762 (SP.050727-7600) and this is still happening. I've also updated to the .NET Framework 2.0.50727.SP2

I saw some other posts in this forum regarding double postbacks, but none specific to the <button> element.

Is there an update or hotfix or any suggestion as to resolving this problem?

 


Viewing all articles
Browse latest Browse all 5678

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>