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 SinghRank #604 · 4K reputationPosted Jun 20, 2016, 9:53 AM EDT
Display Latitude and Longitude Value on Google Map from Sql Server Data Base in Asp.net Using C#.Net
Vinay SinghRank #604 · 4K reputationPosted Jun 15, 2016, 10:21 PM EDT
Vinay SinghRank #604 · 4K reputationPosted Jun 14, 2016, 12:40 AM EDT
-------------rest code
taqi nazir25 reputationPosted Jun 15, 2016, 10:00 PM EDT
Hi Vinay Singh
Rajeesh MenothRank #118 · 18.4K reputationPosted Jun 15, 2016, 10:20 PM EDT
taqi nazir25 reputationPosted Jun 16, 2016, 12:40 AM EDT
Rajeesh MenothRank #118 · 18.4K reputationPosted Jun 16, 2016, 1:20 AM EDT
taqi nazir25 reputationPosted Jun 17, 2016, 2:03 AM EDT
taqi nazir25 reputationPosted Jun 20, 2016, 12:19 AM EDT
Vinay SinghRank #604 · 4K reputationPosted Jun 20, 2016, 1:07 AM EDT
taqi nazir25 reputationPosted Jun 20, 2016, 11:17 PM EDT
Vinay SinghRank #604 · 4K reputationPosted Jun 20, 2016, 11:27 PM EDT
taqi nazir25 reputationPosted Jun 21, 2016, 12:24 AM EDT
taqi nazir25 reputationPosted Jun 22, 2016, 10:09 PM EDT
Vinay SinghRank #604 · 4K reputationPosted Jun 22, 2016, 10:16 PM EDT
taqi nazir25 reputationPosted Jun 22, 2016, 11:00 PM EDT
taqi nazir25 reputationPosted Jun 22, 2016, 11:01 PM EDT
taqi nazir25 reputationPosted Jun 22, 2016, 11:03 PM EDT
Vinay SinghRank #604 · 4K reputationPosted Jun 23, 2016, 12:32 AM EDT
taqi nazir25 reputationPosted Jun 28, 2016, 4:05 AM EDT
hiVinay Singh
thank you so much for guide me ...