1
Answer

How insert double cot ("") in string

Photo of rishi roy

rishi roy

14y
4.9k
1
I can't use double cot in string, it's getting error. plz help me.

Answers (1)

0
Photo of nikshukla
NA 37 0 18y
Check ItemDataBound event of the grid.

i.e.

If e.Item.ItemType = ListItemType.Item OR e.Item.ItemType == ListItemType.AlternatingItem then

      Dim lbl as Label = e.Item.Cell(1).FindControl("YourLabelControl")

      Dim str as String = lbl.Text

      Select Case str
            Case "YES/YES"

                 e.Item.Cells(1).BackColor = Color.Green

            Case "NO/NO"

                 e.Item.Cells(1).BackColor = Color.Red

      End Select
End If

Hope this helps.

Regards,