ASP.Net MVC, strongly typed view with DateTime not accepted?

The NET 4 documentation doesn't show a constraint on TModel but the NET 3.5 docs do. I don't know the details of MVC versioning, but my guess is you need to upgrade to version 2 of MVC.

The . NET 4 documentation doesn't show a constraint on TModel, but the . NET 3.5 docs do.

I don't know the details of MVC versioning, but my guess is you need to upgrade to version 2 of MVC.

Ah, but of course! I'm nostalgically hanging on to good ol' 3.5 - guess it's time to upgrade, then (but I am using MVC 2). Thanks!

– Anders Juul May 5 '10 at 7:01 @Anders: Are you using the final release of ASP. NET MVC 2, or a beta? – Jon Skeet May 5 '10 at 7:17 I was using a beta (as it turned out!) - I got upgraded to to MVC 2 while I was at it... – Anders Juul May 6 '10 at 10:03.

In MVC 3 there is a dynamic object ViewModel in controller wich corresponds to a View object in view. It is kinda a better way to go. Having only strongly typed views benefits from compile time checking.

And it is up to you to decide. Personally I use dynamic object.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions