Here are the steps to add a image dynamically to a table cell in asp.net

tc1 = New TableCell
‘tc1.Text = dr1.Item(6)
If (dr1.Item(6) = 2) Then
tc1.Text = “<img src=images/image1.bmp >”
End If
If (dr1.Item(6) = 1) Then
tc1.Text = “<img src=images/image2.bmp >”
End If
If (dr1.Item(6) = 0) Then
tc1.Text = “<img src=images/image3.bmp >”
End If

Here “tc1″ is the table cell i declared and dr1 is some array item.. Just insert it with any condition and play with your code.