回调,, autopostback困惑.. [英] callback,,autopostback Confused..

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

问题描述

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

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

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

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

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

请输入

解决方案

amitktkr写道:

当我将任何文本放在txtbox中时, txtbox的autopostback = true并单击d形式的文本更改事件执行

这是预期的行为.
由于文本框的自动回发为true,因此当更改文本并将焦点从文本框移开时,将触发其textchanged事件.
TextBox.AutoPostBack属性 [ ASP.NET AutoPostBack属性 [

如果我执行了autoboxback = txtbox 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

When i put any text in txtbox with autopostback=true of txtbox and click anywer in d form textchanged event Executes???



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[^]


amitktkr wrote:

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


Didn''t get.


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

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