pass list item from c# to javascript array

后端 未结 5 1920
栀梦
栀梦 2021-01-01 05:37

I have following code to show multiple marker on gmap



        
5条回答
  •  清酒与你
    2021-01-01 06:01

    I would encode the C# into Json using Json.Net or the C# Json encoder. Then write it into the hidden field. Then decode it on the JavaScript side using Json2

提交回复
热议问题