Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is there a way to automatically treat null as '' ?
Message
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
MVC
Titre:
Is there a way to automatically treat null as '' ?
Versions des environnements
Environment:
C# 4.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01554434
Message ID:
01554434
Vues:
63
Hi everybody,

Is there a way to specify (say, in the model), so it will return an empty string when the value is NULL?

Right now I see (not sure why) 'undefined' for the ClientId and null for the Contact1 in the grid and I'd like to see nothing instead of null.

Thanks in advance.
If it's not broken, fix it until it is.


My Blog
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform