由于javascript OnChange事件,Autopostback无法正常工作 [英] Autopostback is not working because of javascript OnChange Event

查看:71
本文介绍了由于javascript OnChange事件,Autopostback无法正常工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

<asp:TextBox ID="TextBox8" runat="server" Width="268px"  

                        onChange="$find('AutoCompleteExtender3').set_contextKey(this.value);" 

                        ontextchanged="TextBox8_TextChanged" AutoPostBack="true"></asp:TextBox> 





这是我的代码

请注意



This is my code
Please notice the

AutoPostBack="true"






and

onChange="$find('AutoCompleteExtender3').set_contextKey(this.value);"





由于onchange事件,我的autpostback无效。



如果我删除了onchange事件,那么它的工作完美。

请建议任何其他方式,因为我需要它们。

请帮忙。



My autpostback is not working because of onchange event.

If I remove the onchange event then its working perfectly.
Please suggest any alternative way, Because I need both of them.
Please help.

推荐答案

find('AutoCompleteExtender3')。set_contextKey(this.value);

ontextchanged = TextBox8_TextChanged AutoPostBack = true > < / asp:TextBox >
find('AutoCompleteExtender3').set_contextKey(this.value);" ontextchanged="TextBox8_TextChanged" AutoPostBack="true"></asp:TextBox>

< br $> b $ b

这是我的代码

请注意



This is my code
Please notice the

AutoPostBack="true"






and

onChange="


find(' AutoCompleteExtender3')。set_contextKey(this.value);
find('AutoCompleteExtender3').set_contextKey(this.value);"





由于onchange事件,我的autpostback无效。



如果我删除onchange事件,那么它的工作完美。

请建议任何其他方式,因为我需要它们两个。

请帮忙。



My autpostback is not working because of onchange event.

If I remove the onchange event then its working perfectly.
Please suggest any alternative way, Because I need both of them.
Please help.


你可以试试



you might try

<asp:TextBox ID="TextBox8" runat="server" Width="268px"

        onChange="


这篇关于由于javascript OnChange事件,Autopostback无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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