add conditional DataList item
Hi,
I'm sure this is really simple but I don't know the exact syntax to do this: all I want to do is, if items.count = 0 then add a list item "no items assigned". Below is my code:
Finally
If Not dr Is Nothing Then
dr.Close()
End If
If lstSysProfile.Items.Count > 0
lstSysProfile.Visible = True
Else
lstSysProfile.Visible = False
End If
End Try
Thanks!
John
|