页面多次回发后不会触发TextBox1 _TextChanged事件 [英] TextBox1 _TextChanged event not firing after many postbacks of a page

查看:81
本文介绍了页面多次回发后不会触发TextBox1 _TextChanged事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

我遇到一个问题,即在页面回发后Textbox事件无法触发.

文本框位于Updatepanel中.

我正在使用文本框输入邮政编码,并相应地填写城市下拉列表.

在页面中..我们进行了一些验证..

在检查验证之前... textchanged事件正在触发.

但是在检查验证之后.即在回发之后.textxhanged事件没有触发.


我尝试使用

Hello,

I have a problem where Textbox event is not firing after postbacks of a page.

The textbox is placed in a Updatepanel.

I am using the text box to enter zipcodes and fill the cities dropdown accordingly.

In the page.. we have some validation..

before checking the validation... the textchanged event is firing.

but after checking validations..that is after postbacks..the textxhanged event is not firing.


I tried using

txtCode.TextChanged += new EventHandler(txtCode_TextChanged);

...在页面加载中.


但是没用.

谁能帮我解决问题.


谢谢
yashoda

...in pageload.


but didnt work.

Can anyone help me in solving .


Thank you,
yashoda

推荐答案

你好Bandayashoda,

您是否尝试在.aspx页面的文本标记中添加text_changed事件?
您是否尝试过在页面的preinit中添加事件处理程序语句?

在请求处理期间,文本框的change事件的绑定没有发生某种情况,或者引发该事件的信息没有传递给textbox控件.

好吧,您需要提供一些代码以更好地理解问题.
Hello Bandayashoda,

Did you try adding text_changed event in text tag of your .aspx page?
Did you try adding event handler statement in page''s preinit?

Somehow the binding of your textbox''s change event is not happening or the information to raise the event is not passed to the textbox control during request processing.

Well you need to provide some code to better understand the issue.


这篇关于页面多次回发后不会触发TextBox1 _TextChanged事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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