Versions des environnements
Network:
Windows 2003 Server
Doesn't MVC require the model to have a default constructor (which Naomi did not have) ? If she gets past that then checking ModelState should show any problems with the data.
But you're right - good idea to check what's coming over the wire - I'd use Fiddler for that tho.....
>That's exactly what the error says, but I don't think that's what she wants. I've had situations where the data wasn't getting saved into the Json format and sent a null. The correct route was called, but no data got passed in. So, having no data would just do nothing. Isn't she trying to save data here? That's why I suggested using Alert dialog to see what data is being passed around.
>
>
>>If no data was sent then wouldn't the routing fail ?
>>
>>Maybe I should have looked more closely but seemed to me that the problem was exactly what the exception stated : there is no parameterless constructor for the model....
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