Posted on: 2/6/2014 10:22:12 PM | Views : 661

Hi ,
for textboxes i can compare and calculate totalhrs  for hidden fileds   how to do that
 
below is the design something
suntextbox  sunhiddentext
mondaytext       monhiddentext
.
.
total.text  ///working fine
onsite.text //working but if user updates anything in suntextbox   onsite.text becomes 00:00:00
 
if (txt_SunServiceHrs.Text.Length > 0) { TimeSpan val11; string sun = txt_SunServiceHrs.Text; TimeSpan.TryParse(sun, out val11); TimeSpan breaktime1 = new TimeSpan(); breaktime1 = val11; TimeSpan standardTime = TimeSpan.FromHours(40); txt_standard.Text = FormatHours(standardTime); //txt_OverTimeHrs.Text = FormatHours(breaktime1 - standardTime); ...

Go to the complete details ...