Using dynamic as type of MVC strongly typed view?

I'm not 100% on this, but I think the problem is that the default model binder has no idea what to do with a 'dynamic' type, since it doesn't have any defined properties to reflect over. You'd need to write your own model binder that would use the form input names instead, which is dangerous/unreliable because the form can be modified on the client side I've explored dynamically-typed ViewPages before (here on SO actually: stackoverflow.com/questions/1178984/dyna... ), and I've come to the conclusion that it really doesn't give you anything in most situations. At least, not yet (MVC 3+ could be different story) And here's some notes from Phil Haack on the matter: haacked.com/archive/2009/08/26/method-mi....

I'm not 100% on this, but I think the problem is that the default model binder has no idea what to do with a 'dynamic' type, since it doesn't have any defined properties to reflect over. You'd need to write your own model binder that would use the form input names instead, which is dangerous/unreliable because the form can be modified on the client side. I've explored dynamically-typed ViewPages before (here on SO actually: stackoverflow.com/questions/1178984/dyna...), and I've come to the conclusion that it really doesn't give you anything in most situations.At least, not yet (MVC 3+ could be different story).

And here's some notes from Phil Haack on the matter: haacked.com/archive/2009/08/26/method-mi....

I have a page for creation of dynamic entities. Well, the problem is that the entity comes empty from the page. If I change dynamic in (1) for the real type it works fine.

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