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
2010-05-05 15:14:07
Good job. Thanks!
2010-07-16 13:36:14