Hi, my problem is, I have set the parameter to be 150 in the database. and the alert triggered should refer to the parameter value. if the calculation result exceeds the parameter value, it will turn the box to red colour. however, i notice that it only compares the first three number. for example, if the calculation result is 1778.99 it will turn the box red because its first three digit is more than 150. but if the calculation result is 10234.90, it does not trigger the alert. i assume it only takes the first three digit. how do i solve this? here is the code for this part;
Dim total1 As Label = CType(e.Item.FindControl("total1"), Label)
total1.Text = e.Item.DataItem("inventories").ToString * 365 / e.Item.DataItem("operating_cost").ToString
If total1.Text >= e.Item.DataItem("para1").ToString Then
total1.BackColor = Drawing.Color.Red
ElseIf total1.Text <= e.Item.DataItem("para1").ToString Then
total1.BackColor = Drawing.Color.Transparent
End If