Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Troubles with jquery ui dialog and save method
Message
From
03/04/2013 12:18:48
 
 
To
03/04/2013 11:52:01
General information
Forum:
ASP.NET
Category:
MVC
Environment versions
Environment:
C# 4.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01569821
Message ID:
01569912
Views:
20
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.....
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform