Get ViewBag value from javascript


<script type="text/javascript">

var roleExist = @Html.Raw(Json.Encode(Model.UserRolePropertyLevel));
var array = @Html.Raw(Json.Encode(@ViewBag.AvailablePPOList));
alert(JSON.stringify(roleExist));
</script>

2 comments:

  1. Wow it is really wonderful and awesome thus it is very much useful for me to understand many concepts and helped me a lot. it is really explainable very well and i got more information from your blog.


    Java training in Chennai

    Java training in Bangalore

    Java training in Hyderabad

    Java Training in Coimbatore

    Java Online Training

    ReplyDelete
  2. Virtual event and extended reality (XR) tech were well represented at the trade show; the latter had a dedicated exhibition named XR Experience, the in-person sequel to the last edition’s SXSW Online XR. event technology Both technologies are likely propelled by the ramped-up investments in the metaverse and complementary technologies. how to write a debriefing report, event scheduling software, event swag bag, define experiential marketing, online registration site, presentation bio, how to have an online vendor event, thank you note for event and catchy invitation phrases

    ReplyDelete