| Author: Williams 21 Nov 2008 | Member Level: Gold | Rating: Points: 0 |
hi, try using the onblur event of the textbox and start calculating the sum of the values in the textboxes and assign it to the final textbox.Everything should be done on client side using javascript. onblur event of textbox is client side event.
The javascript function would be like
function CalculateSum() { var txt1 = document.getElementById('TextBox1').value var txt2 = document.getElementById('TextBox2').value var txt3 = document.getElementById('TextBox3').value var txt4 = document.getElementById('TextBox4').value document.getElementById('TextBox5').value = txt1 + txt2 + txt3+ txt4 }
try calling the above function on the onblur event of the final text box when u want to calcualte the actual sum .
|
| Author: Jaydeep Patil 21 Nov 2008 | Member Level: Bronze | Rating:  Points: 1 |
fire this calculation.datagrid in textbox_leave event
|