asp.net按钮每隔一次仅触发一次onclick事件 [英] asp.net buttons only firing onclick event every other time

查看:100
本文介绍了asp.net按钮每隔一次仅触发一次onclick事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个带有许多按钮和其他控件的Web表单.这些按钮只会每隔您单击一次便触发其onclick事件.有谁知道如何解决这一问题?我已经在网上搜索了.我尝试的所有方法均无效.

I have a web form with many buttons on it and other controls. The buttons only fire their onclick event every other time you click it. Does anyone know how to fix this? I have already searched the web. Everything I tried did not work.

谢谢.

推荐答案

您使用的是哪个Visual Studio版本?您的Web应用程序定位到哪个.NET Framework版本?

What Visual Studio version are you using? What.NET Framework version does your web app target?

我试图在VS 2013 CE和VS 2015 CE(在Win 10上运行)上复制您的问题,但没有成功.

I have tried to replicate your issue in both VS 2013 CE and VS 2015 CE (running on Win 10) without success.

如果创建一个新的Web窗体项目并在窗体上放置按钮会发生什么?单击按钮时,新项目是否表现出相同的行为?

What happens if your create a new web form project and put buttons on the form? Does the new project exhibit the same behavior when a button is clicked?


这篇关于asp.net按钮每隔一次仅触发一次onclick事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆