Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Troubles with jquery ui dialog and save method
Message
De
03/04/2013 12:18:48
 
 
À
03/04/2013 11:52:01
Information générale
Forum:
ASP.NET
Catégorie:
MVC
Versions des environnements
Environment:
C# 4.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01569821
Message ID:
01569912
Vues:
21
This message has been marked as a message which has helped to the initial question of the thread.
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
Fil
Voir

Click here to load this message in the networking platform