How to change the row color of the Repeater based on some condition?

VB.NET

Protected Function FormatColorRow(strUnitPrice As String) As String

Dim unitprice As Double = Double.Parse(strUnitPrice)

If unitprice <= 15 Then Return "style='backGround-color:red'" Else Return "style='backGround-color:green'" End If End Function 'FormatColorRow C#

protected string FormatColorRow(string strUnitPrice)

{

double unitprice =double.Parse ( strUnitPrice);

if ( unitprice <= 15)

{

return "style='backGround-color:red'";

}

else

{

return "style='backGround-color:green'";

}

}