本文介绍了回调,, autopostback困惑..的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个简单的表单,其中包含文本框网格和按钮...

我将所有控件都放在一个updatepanel中这是正确方法吗??

我在主页上提供了指向表单的链接,单击链接将在给定的目标上打开

我正在通过textbox的textchanged事件过滤掉textbox,但问题是==========当我将任何文本放入txtbox中且txtbox的autopostback = true并单击d形式的anywer textchanged事件执行时???

如果我执行txtbox的autopostback = false,则控件转到任意"按钮并执行代码

请输入

解决方案


没有得到.


i have one simple form containing textbox grid and buttons...

i put all the controls in one updatepanel Is It Correct method????

I''m giving link to form from my main page and on clicking on link it will open on given target which is

I''m doing filtering thru textbox on textchanged event of textbox but the problem is that ========="When i put any text in txtbox with autopostback=true of txtbox and click anywer in d form textchanged event Executes???

if i do autopostback=false of txtbox than the control goes to the Any button and executes the code

plz suggest

解决方案



This is expected behavior.
Since autopostback of a text box is true, when the text is changed and you focus is moved from the textbox, its textchanged event will be fired.
TextBox.AutoPostBack Property [^]
ASP.NET AutoPostBack Property[^]



Didn''t get.


这篇关于回调,, autopostback困惑..的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-27 16:57