Which approach should you recommend?

You are designing an ASP.NET MVC 2 Web application. You have the following
requirements: Type safety must be validated at compile time. Code must not require explicit
run-time type casting. You need to pass data between the controllers and the views within
the Web application. Which approach should you recommend?

You are designing an ASP.NET MVC 2 Web application. You have the following
requirements: Type safety must be validated at compile time. Code must not require explicit
run-time type casting. You need to pass data between the controllers and the views within
the Web application. Which approach should you recommend?

A.
Use the TempDataDictionary class.

B.
Use strongly typed view model classes.

C.
Use the ViewDataDictionary class.

D.
Use dynamic object view model classes.



Leave a Reply 0

Your email address will not be published. Required fields are marked *