按钮单击事件代码的问题 [英] problem with button click event codes

查看:66
本文介绍了按钮单击事件代码的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

i我正在为我的课程编写一个程序。在我的登录表单中我有一个按钮。在这个按钮的点击事件中我写了一些代码,当我点击那些信息时向我展示。



但是在我将此按钮(在表单中)放在更新面板中,更新进度和脚本管理器后,我点击此按钮。信息没有显示给我。我必须做什么?请帮助

解决方案

解决了我的朋友。

我有一个标签告诉我点击按钮时的一些信息。

此标签不在更新面板中。我将其拖到更新面板内。并显示错误消息和其他。



这个问题的教训是,当你向更新面板添加一个按钮时,你必须将与此按钮有关系的每个按钮添加到更新面板。我认为这是正确的吗?建议?

hi all,
i am writing a program for my course.in my login form I have a button.in this button''s click event i write some codes that when i click that some information showed to me.

but after i placed this button(in form) in a update panel,update progress,and script manager.when i click in this button.that information do not showed for me.wwhat i must do?please help

解决方案

solved my friends.
I have a label that show me some information when button clicked.
this label is out of update panel.i dragged it to inside of update panel.and show me error message and others.

the lesson from this question is that when you add a button to a update panel you must add every button''s that have relation with this button to the update panel.I think this.is it correct?suggestions?


这篇关于按钮单击事件代码的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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