access the current asp model from javascript code example Example: model to js var objModel =@Html.Raw(Json.Serialize(Model));