How to pass value from cshtm to javascript?
Dec 18, 2023
step1. use linq read data to array.
step2. use @Html.Raw(Json.Serialize(YourVariable)); to get value from cshtml to javascript block.
step1. use linq read data to array.
step2. use @Html.Raw(Json.Serialize(YourVariable)); to get value from cshtml to javascript block.
For the last few years. i was involved mostly in the development of Automatic Fare collection system for the Chennai Metro. Familiar with C++ and iOS.