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
is it possible to bind JQGrid OnSelectRow using Live?
Add new row(s) dynamically in emtpy table using telerik grid in ASP.NET MVC
You could then render this into a hidden field or wherever on the view..
ASP.NET MVC Routing Strange or Unexpected Behavior
Which to learn: ASP.NET MVC or ASP.NET [duplicate]
Localizing the fields / attributes on the AccountModel for ASP.NET MVC
Default ASP.NET MVC 2 web pages do not work in IE6
Have jqGrid use different page to view a row
viewModel.JsonToUse = JsonConvert.SerializeObject(object).ToString(); // Or build the Json up manually using a JOBject.
return View("ViewName", viewModel);