<pre lang="xml"><script type="text/javascript"> $(document).ready(function () {
for (var j = 0; j < '@Model.Count' / 2; j++) { getHalfViewPage('@(Html.Raw(Url.Action("LoadReports", "Dashboard", new { @area = "Home", showfullWidth = true, DMFormDefKey = Model.ElementAt(0).deffromkey }, Request.Url.Scheme)))', "halfViewList1-" + j); }
<script type="text/javascript"> var yourModel = '@Html.Raw(Json.Encode(Model))'; // yourModel now contains your MVC (server side) model as json serialized model. alert(yourModel.whatEverPropertyYouWant); </script>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)