how to get latitude and logitude from sql server 2008 ,Asp.net web form
i want to get title, latitude ,logitude and description from sql server 2008?
how to conncet sql server 2008?
i want to get title, latitude ,logitude and description from sql server 2008?
please guide me??
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="gmap.ascx.cs" Inherits="line.usercontrol.GMap" %>
html { height: 100% }
body { height: 100%; margin: 0; padding: 0 }
#map_canvas { height: 100% }
function initialize() {
var markers = [
{
"title": "University",
"lat": 43.9801363,
"lng": 81.4439812,
"description": "University"
},
{
"title": "School",
"lat": 38.4887684,
"lng": 78.3207063,
"description": "School"
}
];
var mapOptions = {
center: new google.maps.LatLng(33.375321, 99.345116),
zoom: 5,
mapTypeId: google.maps.MapTypeId.ROADMAP
// marker:true
};
var infoWindow = new google.maps.InfoWindow();
var map = new google.maps.Map(document.getElementById("map_canvas"), mapOptions);
for (i = 0; i < markers.length; i++) {
var data = markers[i]
var myLatlng = new google.maps.LatLng(data.lat, data.lng);
var marker = new google.maps.Marker({
position: myLatlng,
map: map,
title: data.title
});
(function (marker, data) {
// Attaching a click event to the current marker
google.maps.event.addListener(marker, "click", function (e) {
infoWindow.setContent(data.description);
infoWindow.open(map, marker);
});
})(marker, data);
}
}
Vinay SinghPosted Jun 20, 2016, 1:53 PM
Display Latitude and Longitude Value on Google Map from Sql Server Data Base in Asp.net Using C#.Net
taqi nazirPosted Jun 28, 2016, 8:05 AM
hiVinay Singh
thank you so much for guide me ...Vinay SinghPosted Jun 23, 2016, 4:32 AM
taqi nazirPosted Jun 23, 2016, 3:03 AM
taqi nazirPosted Jun 23, 2016, 3:01 AM
taqi nazirPosted Jun 23, 2016, 3:00 AM
Vinay SinghPosted Jun 23, 2016, 2:16 AM
taqi nazirPosted Jun 23, 2016, 2:09 AM
taqi nazirPosted Jun 21, 2016, 4:24 AM
Vinay SinghPosted Jun 21, 2016, 3:27 AM
taqi nazirPosted Jun 21, 2016, 3:17 AM
Vinay SinghPosted Jun 20, 2016, 5:07 AM
taqi nazirPosted Jun 20, 2016, 4:19 AM
taqi nazirPosted Jun 17, 2016, 6:03 AM
Rajeesh MenothPosted Jun 16, 2016, 5:20 AM
taqi nazirPosted Jun 16, 2016, 4:40 AM
Vinay SinghPosted Jun 16, 2016, 2:21 AM
Rajeesh MenothPosted Jun 16, 2016, 2:20 AM
taqi nazirPosted Jun 16, 2016, 2:00 AM
Hi Vinay Singh
Vinay SinghPosted Jun 14, 2016, 4:40 AM
-------------rest code