Assuming that an ASP.NET MVC View is going to show data, is there any scenario where you would not want to use a strongly-typed view?
This is the only reason I can see for not using a strongly-typed view, any other use would be just asking for trouble!
Colin Desmond
2009-06-01 14:00:05
+2
A:
I think that you should follow the practice of always using strongly typed views, unless no model isused at all like previously mentioned for pages like login.
Sayed Ibrahim Hashimi
2009-06-01 14:04:57
A:
I'm forced to put some data in layout. Cause I couldn't find any good way to make strongly typed layout, I'm passing necessary data through controller base class and picking it up at layout through indexer of viewData by key.
For partialviews i just nest form models, no problems there i guess.
Arnis L.
2009-06-01 14:20:15