I have some data that I want to pass into the View (.aspx page) in JSON format.
I could add an async ajax call and load it that way, but since I have the data upfront, why not just dump it into the view.
Thanks in advance, Chris
How to make pages automatically use https when using asp.net mvc 2.0
1:is it possible to bind JQGrid OnSelectRow using Live?
You could then render this into a hidden field or wherever on the view.. ASP.NET MVC Routing Strange or Unexpected Behavior
2:Default ASP.NET MVC 2 web pages do not work in IE6
viewModel.JsonToUse = JsonConvert.SerializeObject(object).ToString(); // Or build the Json up manually using a JOBject. return View("ViewName", viewModel);