Dim sd as New SqlDataAdapter("Select Months from table",con) Dim dt as new Datatable sd.Fill(dt) For i as Integer =0 to dt.rows.count -1 If dt.rows(i).Item("Months") = 'Jan' -------Applied css to label1 End If -------similary added the If Condition and applied the css Next
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)