Click here to Skip to main content
15,790,267 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am making a module in and i am using Update Panel and Master Pages also.
I have a TextBox and on it's TextChanged Event i am calculating the total time taken.
It is working properly when user enters the text in the textBox manually but when user selects a text from history of the TextBox the event does not fires at all.
What to do Please Help.
Thank You!
dimpledevani 9-Aug-12 8:37am    
As far as i know TextChanged Event fires only when you press enter or tab key from keyboard.So after you select an item from history of textbox, try pressing enter and see if fires the event.

Use the KeyPress event. And put your calculations logic in a method. Call to the method in TextChanged and KeyPress.

Hope it helps.
Share this answer
The TextChanged event will be fired only, when the value of textbox will change and cursor will be removed from textbox(Make sure that autopostback property of textbox is <blue>true). This doesn't matters that from where you are picking the texts, it can be both from user keyboard or history.

Refer this for more info : MSDN : TextBox.TextChanged Event[^]

Try reading this[^] also.

Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900