Could ANYONE check on my code. As I compare the DSO with the DSO para, it seems doesn't compare both data at all. I have been converting the DSO as double first between comparing it as if i compare with string it doesn't work. anyone could help me please. I need it urgently
Dim dso1 As Label = CType(e.Item.FindControl("dso1"), Label)
If Not IsNothing(dso1) Then
dso1.Text = e.Item.DataItem("DSO").ToString
If e.Item.DataItem("DSO").ToString < e.Item.DataItem("DSO_para").ToString Then
dso1.BackColor = Drawing.Color.Transparent
ElseIf Double.Parse(e.Item.DataItem("DSO").ToString) >= Double.Parse(e.Item.DataItem("DSO_para").ToString) Then
dso1.BackColor = Drawing.Color.Red
End If
If dso1.Text = "" Then
dso1.Text = "N/A"
End If
End If