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 ViewDataDictionary class.

B.
Use the TempDataDictionary class.

C.
Use strongly typed view model classes.
D. Use dynamic object view model classes.



Leave a Reply 0

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