Using it ends, thanks for helping the guys!
On the page:
<asp:Literal ID="ltPDF" runat="server" Visible='<%# showPDF(Container.DataItem("filename")) %>'>Test</asp:Literal>
Code behind:
Function showPDF(ByVal pdf As String) As Boolean
If pdf <> "" Then
Return True
Else
Return False
End If
End Function
source
share