G
Guest
hey all,
i have the following 2 scenarios, 1 works the other doesn't:
this works:
If IsDBNull(e.Item.DataItem("DateField")) Then
e.Item.Cells(DATE_APPROVED).Text = String.Empty
Else
e.Item.Cells(DATE_APPROVED).Text = "a value"
End If
this doesn't work (it appears to execute the false part when the function
actually returns true in the Command window.)
textbox1.text=iif(IsDBNull(e.Item.DataItem("DateField")), String.Empty,
"false part")
thanks,
rodchar
i have the following 2 scenarios, 1 works the other doesn't:
this works:
If IsDBNull(e.Item.DataItem("DateField")) Then
e.Item.Cells(DATE_APPROVED).Text = String.Empty
Else
e.Item.Cells(DATE_APPROVED).Text = "a value"
End If
this doesn't work (it appears to execute the false part when the function
actually returns true in the Command window.)
textbox1.text=iif(IsDBNull(e.Item.DataItem("DateField")), String.Empty,
"false part")
thanks,
rodchar