protected void updateLabTotals() { TimesheetManager tm = new TimesheetManager(); decimal[] totals = tm.getLabTotalsForId(timesheetID, false); decimal finalTotal = 0; sunLabLBL.Text = totals[0].ToString("0.0"); sunTotalHoursLBL.Text = (totals[0] + Convert.ToDecimal(sunTotalHoursLBL.Text)).ToString("0.0"); finalTotal += totals[0]; monLabLBL.Text = totals[1].ToString("0.0"); monTotalHoursLBL.Text = (totals[1] + Convert.ToDecimal(monTotalHoursLBL.Text)).ToString("0.0"); finalTotal += totals[1]; tuesLabLBL.Text = totals[2].ToString("0.0"); tuesTotalHoursLBL.Text = (totals[2] + Convert.ToDecimal(tuesTotalHoursLBL.Text)).ToString("0.0"); finalTotal += totals[2]; wedsLabLBL.Text = totals[3].ToString("0.0"); wedsTotalHoursLBL.Text = (totals[3] + Convert.ToDecimal(wedsTotalHoursLBL.Text)).ToString("0.0"); finalTotal += totals[3]; thursLabLBL.Text = totals[4].ToString("0.0"); thursTotalHoursLBL.Text = (totals[4] + Convert.ToDecimal(thursTotalHoursLBL.Text)).ToString("0.0"); finalTotal += totals[4]; friLabLBL.Text = totals[5].ToString("0.0"); friTotalHoursLBL.Text = (totals[5] + Convert.ToDecimal(friTotalHoursLBL.Text)).ToString("0.0"); finalTotal += totals[5]; satLabLBL.Text = totals[6].ToString("0.0"); satTotalHoursLBL.Text = (totals[6] + Convert.ToDecimal(satTotalHoursLBL.Text)).ToString("0.0"); finalTotal += totals[6]; totalLabLBL.Text = finalTotal.ToString("0.0"); }