Can some please look at this function and maybe help me with why it's
not doing as it's told... :)
It's basicall meant to check to see if that field returned from
database actually has any data in it, and if not, return a display:none
style to hide it from the list
I'm trying to achieve not having to show every option of the columns in
that row, especially if the column is empty (no data)
Function code..
-----------------------
Function HideLink ( val )
If field.IsEmpty(v al) then
response.write( "display:no ne")
Else
response.write( "")
End If
End Function
Use in page
----------------------
<a href="pdf/<%# Eval("content_t ype_msds") %>" <%# HideLink (
Container.DataI tem("content_ty pe_msds") )%>>MSDS</a>
not doing as it's told... :)
It's basicall meant to check to see if that field returned from
database actually has any data in it, and if not, return a display:none
style to hide it from the list
I'm trying to achieve not having to show every option of the columns in
that row, especially if the column is empty (no data)
Function code..
-----------------------
Function HideLink ( val )
If field.IsEmpty(v al) then
response.write( "display:no ne")
Else
response.write( "")
End If
End Function
Use in page
----------------------
<a href="pdf/<%# Eval("content_t ype_msds") %>" <%# HideLink (
Container.DataI tem("content_ty pe_msds") )%>>MSDS</a>
Comment