0

Hi,
I'm doing a small application using asp & C#. I'm having three text boxes. I want the result in the third text box when I changed from second text box to third.
For example: Let A= 10 , B=20 when I changed the tab from the textbox2 automatically print the result in the third box.
Please help me.

Thanks for helping me.
Warm Regards
Srinivas

3
Contributors
2
Replies
3
Views
8 Years
Discussion Span
Last Post by DdoubleD
0

Use the 'Leave' Event Handler for the second textbox.
Write in the code for whatever you want to display, in this event handler.

0

Consider using TextBox.Validating and/or TextBox.Validated methods to update other control's text. These are called before the TextBox.Leave and/or TextBox.Focus events are fired. The problems with the latter events is that there is not control over which will get fired first, which may not be an issue for you right now, but you will run into it one day if you haven't already.

The Validating event allows you to validate data and abort leaving the control if the data does not meet your criteria.

The Validated event occurs after validation above, indicating the TextBox.Text has passed whatever validation that may have been needed.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.