更新面板的TextChanged事件问题 [英] TextChanged event issue with Update Panel

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

问题描述

我有一个基于VB.NET的Web应用程序,该应用程序在更新面板中具有许多控件-按钮,下拉列表和文本框.

如果我使用其他控件而不是文本框来进行回发,则没有问题.如果我使用带有textchanged事件作为事件的文本框,则总是会遇到Javascript错误.

它在整个站点范围内,并且不与特定页面绑定.我在页面上放置了一个虚拟按钮控件,该页面没有代码,但仅执行回发,并且在使用文本框之前在输入表单时使用它时,页面将完美运行,直到我重新开始使用表单为止.

有任何想法吗?

I have a VB.NET based Web application that has numerous controls in an update panel - Buttons, dropdownlists, and textboxes.

If I use any control other then a textbox to do a postback, I have no problems. If I use a textbox with the textchanged event as the event, I always get a Javascript error.

It is site wide, and not tied to a specific page. I have put a dummy button control on the page that has no code but just does a postback, and when using it upon entering the form before using a textbox, the page runs flawlessly until I start over with the form.

Any ideas?

推荐答案

这完全取决于您所得到的错误,
既然您说这是Javascript错误,那么我想告诉您错误是在回发之前引发的,即您从TextBox进行回发的位置.
that is all depend on the error what you are getting,
since you said it is a Javascript Error, then i would like to tell you that the Error is raising before the postback, somewhere around where you are making the postback from TextBox.


这篇关于更新面板的TextChanged事件问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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