Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
@model does not exist in the current context
Message
From
03/03/2014 11:04:30
 
General information
Forum:
ASP.NET
Category:
MVC
Environment versions
Environment:
C# 2.0
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01595609
Message ID:
01595674
Views:
36
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform