Posted on: 6/19/2012 12:51:55 PM | Views : 284

Hi there,
so i have multipule labels that i do pretty much the same math with, so i was wondering how i would loop them instead of displaying all the code like i am right now
here is my current code
/// the first row doesn't include the flex credit or tax deductions EstimatedGrossBiWeeklyPayRow1.Text = Math.Round((Convert.ToDouble(AnnualBase.Text) / 52), 2).ToString(); // the next 13 rows are your bi-weekly total with flex but with out tax deduction EstimatedGrossBiWeeklyPayRow2.Text = Math.Round(((Convert.ToDouble(AnnualBase.Text) / 26) + (Convert.ToDouble(AnnualFlex.Text) / 24)), 2).ToString(); EstimatedGrossBiWeeklyPayRow3.Text = Math.Round(((Convert.ToDouble(AnnualBase.Text) / 26) + (Convert.ToDouble(AnnualFlex.Text) / 24)), 2).ToString(); EstimatedGrossBiWeeklyPayRow4.Text = Math.Round(((Convert.ToDouble(AnnualBase.Text) / 26) + (Convert.ToDouble(AnnualFlex ...

Go to the complete details ...