Environment versions
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.....
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only