TextBox textchange事件 [英] TextBox textchange event

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

问题描述

如何在不使用自动回发的情况下工作Texbox textchange事件代码是正确的.如果我们声明自动回发为true,则页面将刷新,但我不想刷新页面.

请帮助我....感谢提前

How to work Texbox textchange event code without use auto postback is true. If we declare auto postback is true then the page is refresh but i don''t want to refresh the page.

Please help me....Thanks for advance

推荐答案

如何在不使用自动回发的情况下工作Texbox textchange事件代码
您需要使用多种方法之一来从客户端与服务器通信.如果您不希望整个页面在回发时刷新,而是在textchange上执行某种方法,请查看并实现以下适合您的方法之一: 1. XMLHttpRequest [回调 [ Web服务调用 [ PageMethod [
How to work Texbox textchange event code without use auto postback
You need to use one of the various ways to talk to server from client side. If you don''t want your entire page to refresh on the postback and yet execute some method on textchange then look and implement one of the below that suits you:
1. XMLHttpRequest[^]
2. Callback[^]
3. WebService call[^]
4. PageMethod[^]


嗨Rahul,

如果您使用服务器控件,则可能会有所帮助;)

Hi Rahul,

If you are using server control then it might help you ;)

<asp:TextBox  onkeypress="javascript:alert(''call a javascript function dear '');"   runat="server" ID="txtid"></asp:TextBox>


让我知道这是否满足您的目的.
我们将找到其他一些解决方案2gther;)


经典的ajax也可以帮助:)
:)享受生活
(Sachin Dabas)


Let me know if this satisfy your purpose or not.
we will find some other solution 2gther ;)


Classic ajax can also help :)
:) Enjoy life
(Sachin Dabas)


如何在不破鸡蛋的情况下制作炒鸡蛋?

抱歉,但是您必须使用自动回发或不使用事件.两者在一起或根本不在一起.选择是您的.
How to make scrambled eggs without breaking them?

Sorry, but you must live with the AutoPostback or without the event. Both come together or not at all. The choice is yours.


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

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