活动无法正常进行 [英] Event not working suddenly

查看:63
本文介绍了活动无法正常进行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我的网页中有2个文本框.我在text2_TextChanged中编写了``计算在textbox1和textbox2中输入的数字''的代码,结果将出现在textbox3中;这是可行的. 但是我的问题是此操作没有突然发生,只有当我单击它或任何其他控件之外时,它才起作用;
任何解决方案的人?????
在此先感谢

Hi
I have 2 textbox in my webpage.I written the code for ''calculating number entered in textbox1 and textbox2'' in text2_TextChanged.The result will appear in textbox3;this is working.
But my problem is this action is not heppening suddenly,its Only working when I am click outside of it or any other control;
Any solution guys?????
Thanks in advance

推荐答案



我不确定,但尝试将AutoPostBack = property设置为"true".

我的建议是您不要使用服务器端事件处理程序来处理此类事情.这将导致回发,并且这不是很好的用户体验.考虑将JavaScript用于此类用途.
这样会更好,并且用户不需要等待您的页面进行回发并添加两个数字. ;)

如果您不知道如何进行检查,请
Hi,

I don''t know exactly but try to set AutoPostBack=property to "true".

My advice for you is that you don''t use server side event handlers for such things. That will cause a postback and that is not nice user experience. Consider using JavaScript for such things.
That would be better and user doesn''t need to wait for your page to make postback and add two numbers. ;)

If you don''t know how check this link[^].
That''s exactly what you need...


这篇关于活动无法正常进行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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