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
or inline in markup <% %> tags.
Comments
Post a Comment