In need of desperate help. Is there any way of doing this by just using asp.net, c# and javascript. I dont wanna use visual basic if possible. My database table contains id, address, lat and lng.
I need x1 to be address, x2 to be lat and x3 to be lng.
And what should i do for the back end part(the aspx.cs)?
i searched and tried a lot of things but none seem to work
var locations = [
{ title: x1, location: { lat: x2, lng: x3 } }
];
//create an array of markers
for (var i = 0; i < locations.length; i++) {
//get position from array
var position = locations[i].location;
var title = locations[i].title;
//create markers for each location & put into array
var marker = new google.maps.Marker({
//map: map, //here 2
position: position,
title: title,
animation: google.maps.Animation.DROP,
id: i
});
}