How do I add an inline style in asp.net?

whoopdeedo5555

New member
I would like the span tag in the code below to display red text. What is wrong with my code ?

For Each drow As DataRow In ds2.Tables(0).Rows
If CDate(drow.Item(3).ToString) = e.Day.Date Then
e.Cell.Text += "<br />"
e.Cell.Text += "<span style='fontColor: red'>"
e.Cell.Text += drow.Item(1).ToString & " " & drow.Item(0).ToString & " -BD"
e.Cell.Text += "</span>"
End If
Next
 
Back
Top