Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
@model does not exist in the current context
Message
De
03/03/2014 11:04:30
 
Information générale
Forum:
ASP.NET
Catégorie:
MVC
Versions des environnements
Environment:
C# 2.0
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01595609
Message ID:
01595674
Vues:
37
You're welcome. FYI, I still have a sore forehead from slapping mine.


>Doh (slaps forehead) I was using DisplayFor to print the column name and of course I needed to use Single or SingleOrDefault all is now fine thank you very much for your help
>
>
>@Html.DisplayNameFor(x => x.SingleOrDefault().FirstName)
>
>
>works as expected :-)
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform