Monthly Archives: November 2017

Access .NET MVC model property in javascript

This looks to me very useful as it converts and entire server object in to a javascript accessible object. var yourComplexObject = @Html.Raw(Json.Encode(Model.YourComplexObject)); Add this inside <script> tags when loading the view.

Posted in Uncategorized | Leave a comment