Click here to Skip to main content
15,897,371 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
See more:
can someone help me out
There are 4 textbox i.e ta da hra and total in asp.net
and if i give the value of ta,da and hra then the total is showed automatically.My query is after doing the above if i again want to change the value of ta then the total value should be updated automatically.So What will be the codebehind for that??
Posted
Updated 5-Sep-12 20:54pm
v2
Comments
Sushil Mate 6-Sep-12 3:12am    
what about DA, HRA?
Can you share the code.

Take TextChanged Event of Textbox.
 
Share this answer
 
Hi,

You can make one function to set total. In that function you can do all calculations. Give the final result to Total textbox. Then call this function in all textbox chnged event. So you can set the value for total if any textbox value is changed.

I hope you will get the idea. So make one function for that and after that you will not get the answer then post the code here.

Thanks,
Viprat
 
Share this answer
 

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



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