hello,
i need help with calculate with if conditions statements
i have label with number
if this number = 0 ~14 then - the total
if this number = 15 or more then - the total
I am trying with this code but getting error
Operator '<' cannot be applied to operands of type 'string' and 'int'
if (Label_day.Text < 15)
{
gvFiles.FooterRow.Cells[3].Text = ("Total", 35 - Convert.ToInt32(dt.Compute("Sum(totalva)", ""))).ToString();
}
else if (Label_day.Text 20)
{
gvFiles.FooterRow.Cells[3].Text = ("Total", 45 - Convert.ToInt32(dt.Compute("Sum(totalva)", ""))).ToString();
}