I am trying to test a dataitem for an empty string and display "N/A" if the string is empty, otherwise display the string. For example, I have tried this:
As suggested by numerous web searches. However, this does not work and produces an "Expression expected." error
Any ideas?
Web Development Manager
Code:
<%# Eval("code").ToString()=="" ? "N/A" : Eval("code") %>
As suggested by numerous web searches. However, this does not work and produces an "Expression expected." error
Any ideas?
Web Development Manager