c# 4.0 - Add JavaScript code dynamically with JSON in Asp.net - JVector Map -


i using jvector map , marking locations on map using markers. according documentaiton following code can used mark locations.

 markers: [            { latlng: [53.3574436, 9.9076650], name: 'some city' },           { latlng: [53.3574436, 10.2127204], name: 'another city' },           { latlng: [56.5611120, 24.0300030], name: 'one more city' }          ] 

in case not sure how many locations need mark. times 3, times 5. want know is, possible generate code inside markers : [ ] dynamically json. or may other way?

you add code clientscriptmanager.registerclientscriptblock

see: https://msdn.microsoft.com/en-us/library/system.web.ui.clientscriptmanager.registerclientscriptblock(v=vs.140).aspx

or inline in markup <% %> tags.


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -