Text='<%# (String.IsNullOrEmpty((String)Eval("Title")))? "empty":"full" %>'
?
Ciao, grazie mille.
ho applicato quanto mi hai con prontezza suggerito. Al posto di "Title" inserisco ovviamente il nome del DB field, ma ottengo questo errore :
_______________________________________________________________________________
Unable to cast object of type 'System.DBNull' to type 'System.String'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.InvalidCastException: Unable to cast object of type 'System.DBNull' to type 'System.String'.
_____________________________________________________________________________
Domanda, quando imposto ; "...(String.IsNullOrEmpty((String)Eval("Title")))...." il "(String)" fra parentesi va sostituito con qualche valore specifico?
Ciao e grazie ancora