Answers for "html.raw to list model"

0

html.raw to list model

<div id="appdata" data-obj="@Json.Encode(Model)"></div>
Posted by: Guest on October-21-2021
0

html.raw to list model

<script type="text/javascript">
    var obj = JSON.parse(document.getElementById('appdata').dataset.obj);
</script>
Posted by: Guest on October-21-2021

Browse Popular Code Answers by Language