tags:

views:

28

answers:

1

Can ViewData["SOME VALUE"] be returned also? If not, why?

A: 

The default json actionresult only serializes the model. But it's no problem to write your own implementation to serialize viewdata as well. You could download the source from codeplex and look at the default implementation and just rewrite that.

Mattias Jakobsson
Good job. Thanks!