Versions des environnements
Network:
Windows 2003 Server
My point was that the model needs the default (empty) constructor. If you don't specify a constructor at all C# automatically provides one. But as soon as you add a parameterized constructor then you have to explicitly add the empty constructor.as well.....
>You're not required to provide a constructor. If you do create one, then you need to also create a default constructor. I think she discovered that was the problem and she's on to the next issue.
>
>
>>Don't think that's correct. The default modelbinder requires it.
>>AFAIK if you only have a parameterised constructor you would have to replace the ModelBinder.....
>>
>>Seems like that was Naomi's problem anyway.....
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement