Click here to Skip to main content
15,891,184 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionHow to trigger an event from fileupload? Pin
turbosupramk316-Jun-16 6:25
turbosupramk316-Jun-16 6:25 
AnswerRe: How to trigger an event from fileupload? Pin
jkirkerx16-Jun-16 8:02
professionaljkirkerx16-Jun-16 8:02 
AnswerRe: How to trigger an event from fileupload? Pin
F-ES Sitecore17-Jun-16 1:49
professionalF-ES Sitecore17-Jun-16 1:49 
QuestionReg Chorome Browser Pin
harikreddy16-Jun-16 2:29
harikreddy16-Jun-16 2:29 
AnswerRe: Reg Chorome Browser Pin
Nathan Minier17-Jun-16 1:47
professionalNathan Minier17-Jun-16 1:47 
AnswerRe: Reg Chorome Browser Pin
F-ES Sitecore17-Jun-16 1:51
professionalF-ES Sitecore17-Jun-16 1:51 
AnswerRe: Reg Chorome Browser Pin
John C Rayan20-Jun-16 1:53
professionalJohn C Rayan20-Jun-16 1:53 
Questionhow to get latitude and logitude from sql server Asp.net WEBForm Pin
Member 1180506316-Jun-16 1:03
Member 1180506316-Jun-16 1:03 
how to get latitude and logitude from sql server 2008 ,Asp.net web form


how to conncet sql server 2008?
i want to get title, latitude ,logitude and description from sql server 2008?
please guide me . i am new and not good in programming??

i have created data base in SQL Server 2008.table name is UolMap.i have also enter some data in table ..
ASP.NET
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="gmap.ascx.cs" Inherits="line.usercontrol.GMap" %>
<style type="text/css">
html { height: 100% }
body { height: 100%; margin: 0; padding: 0 }
#map_canvas { height: 100% }
</style>
<script src="http://maps.google.com/maps/api/js?sensor=false" type="text/javascript"></script>
<script type="text/javascript">
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);
}
}
</script>
<body onload="initialize()">
<div id="map_canvas" style="width: 1150px; height: 450px">
</div>
</body>


modified 16-Jun-16 7:47am.

AnswerRe: how to get latitude and logitude from sql server Asp.net WEBForm Pin
Member 1180506317-Jun-16 1:56
Member 1180506317-Jun-16 1:56 
QuestionBad Behavior Pin
BobbyStrain15-Jun-16 9:35
BobbyStrain15-Jun-16 9:35 
AnswerRe: Bad Behavior Pin
jkirkerx15-Jun-16 10:18
professionaljkirkerx15-Jun-16 10:18 
GeneralRe: Bad Behavior Pin
BobbyStrain15-Jun-16 12:44
BobbyStrain15-Jun-16 12:44 
GeneralRe: Bad Behavior Pin
Nathan Minier16-Jun-16 1:18
professionalNathan Minier16-Jun-16 1:18 
GeneralRe: Bad Behavior Pin
BobbyStrain16-Jun-16 6:24
BobbyStrain16-Jun-16 6:24 
GeneralRe: Bad Behavior Pin
Nathan Minier17-Jun-16 1:57
professionalNathan Minier17-Jun-16 1:57 
GeneralRe: Bad Behavior Pin
BobbyStrain17-Jun-16 5:50
BobbyStrain17-Jun-16 5:50 
Question@Url is saying "the name url doesn't exist in the current context" ASP.MVC 4 Pin
indian14314-Jun-16 10:02
indian14314-Jun-16 10:02 
AnswerRe: @Url is saying "the name url doesn't exist in the current context" ASP.MVC 4 Pin
jkirkerx15-Jun-16 7:24
professionaljkirkerx15-Jun-16 7:24 
GeneralRe: @Url is saying "the name url doesn't exist in the current context" ASP.MVC 4 Pin
indian14315-Jun-16 8:06
indian14315-Jun-16 8:06 
GeneralRe: @Url is saying "the name url doesn't exist in the current context" ASP.MVC 4 Pin
jkirkerx15-Jun-16 13:09
professionaljkirkerx15-Jun-16 13:09 
GeneralRe: @Url is saying "the name url doesn't exist in the current context" ASP.MVC 4 Pin
indian14315-Jun-16 23:05
indian14315-Jun-16 23:05 
GeneralRe: @Url is saying "the name url doesn't exist in the current context" ASP.MVC 4 Pin
indian14316-Jun-16 9:08
indian14316-Jun-16 9:08 
GeneralRe: @Url is saying "the name url doesn't exist in the current context" ASP.MVC 4 Pin
jkirkerx16-Jun-16 10:37
professionaljkirkerx16-Jun-16 10:37 
GeneralRe: @Url is saying "the name url doesn't exist in the current context" ASP.MVC 4 Pin
indian14316-Jun-16 16:52
indian14316-Jun-16 16:52 
GeneralRe: @Url is saying "the name url doesn't exist in the current context" ASP.MVC 4 Pin
indian14316-Jun-16 22:45
indian14316-Jun-16 22:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.