E
Elmo Watson
I've got a 'helper' function created, to modify the showing of database
results:
Function FixLegal(sItem as String, sPrefix as String)
if sItem is System.DBNull.Value or sItem = "" then
FixLegal=""
else
FixLegal="<i>" & sPrefix & ":</i> " & sItem
End If
End Function
Then, in my DataList:
<%# FixLegal(Container.DataItem("PrpSection"), "Section") %>
This works great, unless there's a Null Value in the table for that
field - - when the value is Null - - I get the error in the subject. I
THOUGHT System.DBNull.Value was supposed to take care of this anomaly
Any ideas?
results:
Function FixLegal(sItem as String, sPrefix as String)
if sItem is System.DBNull.Value or sItem = "" then
FixLegal=""
else
FixLegal="<i>" & sPrefix & ":</i> " & sItem
End If
End Function
Then, in my DataList:
<%# FixLegal(Container.DataItem("PrpSection"), "Section") %>
This works great, unless there's a Null Value in the table for that
field - - when the value is Null - - I get the error in the subject. I
THOUGHT System.DBNull.Value was supposed to take care of this anomaly
Any ideas?