in thevariable int days I will get the integer value.
another variable eg Totalhours :”40:00″
if (oddt.Rows.Count > 0)
{
int days = Convert.ToInt32(oddt.Rows["fltOD"]);
}
for eg:if value returns as 1 means it should add 8 hours in this total hours string and display as Totalhours : “48:00″
if the values returns as 2 means it should add 16 hours in this taotal hours string and display as totalhours :”56:00″
if the values returns as 0.5 means it should add 4 hours in this taotal hours string and display as totalhours :”44:00”
like this dynamically based on the value returns in this int days it should be added.
1 Answer