asp:Textbox control
-
Hi all Whenever I change text in a textbox i need to differentiate between two methods of doing this 1. Enter text 2. select a value from list of previously saved values and press Enter key. One thing to note here is that TextChanged event is not fired when a value from the previously saved values is selected if we are using IE. Any help in this regards ? Regards Zain ul Abideen
-
Hi all Whenever I change text in a textbox i need to differentiate between two methods of doing this 1. Enter text 2. select a value from list of previously saved values and press Enter key. One thing to note here is that TextChanged event is not fired when a value from the previously saved values is selected if we are using IE. Any help in this regards ? Regards Zain ul Abideen
Are you looking for AutoComplete Textbox control? Its there with asp.net ajax control. Pls be sure to make AutoPostback property to false if you don't wish to post back on every text change. please let us know if you are looking for something else.
Anurag Gandhi.
http://www.gandhisoft.com
Life is a computer program and every one is the programmer of his own life. -
Are you looking for AutoComplete Textbox control? Its there with asp.net ajax control. Pls be sure to make AutoPostback property to false if you don't wish to post back on every text change. please let us know if you are looking for something else.
Anurag Gandhi.
http://www.gandhisoft.com
Life is a computer program and every one is the programmer of his own life.Hi No I don't need an ajax control. Actually I have implemented a textchange event for a textbox and it is fired whenever text is changed by: 1. entering text and hitting Enter 2. entering text and then clicking somewhere else on the form But I need to differentiate between these two scenarios. for (1) I have to fire a button's click event and for (2) Enable a button. Thanks for replying. Regards,
-
Hi No I don't need an ajax control. Actually I have implemented a textchange event for a textbox and it is fired whenever text is changed by: 1. entering text and hitting Enter 2. entering text and then clicking somewhere else on the form But I need to differentiate between these two scenarios. for (1) I have to fire a button's click event and for (2) Enable a button. Thanks for replying. Regards,
These are two separate events. Pressing the Enter key is handled by the KeyXXX (KeyDown, KeyUp, KeyPress) events. Clicking elsewhere on the form is handled by the LostFocus event, or OnBlur in JavaScript.
I know the language. I've read a book. - _Madmatt