按钮仅在第二次单击时触发 [英] Button only fires on second click

查看:73
本文介绍了按钮仅在第二次单击时触发的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我有一个包含4个项目的下拉列表。根据所做的选择,将使用不同的按钮更新面板。单击按钮时,将打开一个URL。不知何故,只有在我第一次选择下拉列表中的项目时才会触发它。



我做错了什么?

Hi,

I have a dropdownlist with 4 items. Based on the selection made a panel will be updated with different buttons. When clicking the buttons an url will open. Somehow it is only fired on second click, when I first have chosen the item in the dropdownlist.

What am I doing wrong?

推荐答案

回复

在ondownlectedindexchanged下拉事件中放置一个断点,然后在第一次点击时检查事件是否被触发..

成员11971472在2秒前

回复

[修改评论。] [删除评论。]

感谢您的帮助。我在更新面板中做了它,但会将您的响应标记为解决方案。
Reply
put a breakpoint in onselectedindexchanged event of dropdown and then check whether event is triggered or not while first click time..
Member 11971472 at 2 secs ago
Reply
[Modify the comment.] [Delete the comment.]
Thanks for the help. I made it in an updatepanel instead, but will mark your response as solution.


这篇关于按钮仅在第二次单击时触发的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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