Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
@model does not exist in the current context
Message
 
À
03/03/2014 09:56:07
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:
01595664
Vues:
35
Hi Craig, I took the easy route and created a new project and added my old project items manually and all is fine now (phew) I printed out my old Web.configs and compared them to the ones that are auto generated for a new project and they were hugely different ( Version numbers mainly ) I still have an issue with one view which receives a model of a type I use in other views
@model IEnumerable Employee ( angle brackets removed to pacify this site )
without issue but it wont play ball , if I use a @Html.DisplayFor() for instance intellisense gives me a list of the properties of IEnumerable instead of my type which is strange - any ideas ?
Regards,
Peter J. Kane



Pete
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform