Click here to Skip to main content
15,887,485 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionAsp.net: Count number of records in sql table Pin
Otekpo Emmanuel28-Dec-13 4:13
Otekpo Emmanuel28-Dec-13 4:13 
AnswerRe: Asp.net: Count number of records in sql table Pin
Peter Leow28-Dec-13 4:29
professionalPeter Leow28-Dec-13 4:29 
GeneralRe: Asp.net: Count number of records in sql table Pin
Otekpo Emmanuel28-Dec-13 6:32
Otekpo Emmanuel28-Dec-13 6:32 
GeneralRe: Asp.net: Count number of records in sql table Pin
Peter Leow28-Dec-13 7:33
professionalPeter Leow28-Dec-13 7:33 
GeneralSolved: Asp.net: Count number of records in sql table Pin
Otekpo Emmanuel28-Dec-13 10:07
Otekpo Emmanuel28-Dec-13 10:07 
GeneralRe: Solved: Asp.net: Count number of records in sql table Pin
Peter Leow29-Dec-13 3:48
professionalPeter Leow29-Dec-13 3:48 
Questioni want to get LatLng based on textbox value. Pin
Ya Rasoolallah28-Dec-13 1:45
Ya Rasoolallah28-Dec-13 1:45 
AnswerRe: i want to get LatLng based on textbox value. Pin
Peter Leow28-Dec-13 2:26
professionalPeter Leow28-Dec-13 2:26 
There are a few mistakes,
1. myCenter is not initialized
2. LatLng should be float type not integer type
3. there should be a function that is activated by say a button click in order to capture the new a and b values upon changes by the user
4. a and b have to be converted to latlng type
5. Spot the rest yourself from my demo code below:

XML
<!DOCTYPE html>
<html>
<head>
<script src="https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false">
</script>

<script>
var a;
var b;
var map;

var myCenter=new google.maps.LatLng(a,b);
function initialize()
{
    a=parseFloat(document.getElementById("Text1").value);
    b=parseFloat(document.getElementById("Text2").value);
    var myCenter= new google.maps.LatLng(a, b);
    var mapProp = {
        center:myCenter,
        zoom:8,
        mapTypeId:google.maps.MapTypeId.ROADMAP
   };
  map=new google.maps.Map(document.getElementById("googleMap")
  ,mapProp);
  var marker=new google.maps.Marker({
  position:myCenter,
  animation:google.maps.Animation.BOUNCE
  });

   marker.setMap(map);

}

function updateLocation(){
   a=parseFloat(document.getElementById("Text1").value);
   b=parseFloat(document.getElementById("Text2").value);

   var latLng = new google.maps.LatLng(a, b); //create a latlng
   map.panTo(latLng); //Make map global

}

google.maps.event.addDomListener(window, 'load', initialize);
</script>
</head>
<body>
<input id="Text1" type="text" value="1.3520830"/>
<input id="Text2" type="text" value="103.819836"/>
<button onclick="updateLocation()">Update Location</button>
<div id="googleMap" style="width:800px;height:500px;"></div>
</body>
</html>

GeneralRe: i want to get LatLng based on textbox value. Pin
Ya Rasoolallah31-Dec-13 11:11
Ya Rasoolallah31-Dec-13 11:11 
QuestionAsp.net and dropdown menus Pin
Otekpo Emmanuel27-Dec-13 10:30
Otekpo Emmanuel27-Dec-13 10:30 
AnswerRe: Asp.net and dropdown menus Pin
Tom Marvolo Riddle27-Dec-13 19:06
professionalTom Marvolo Riddle27-Dec-13 19:06 
Questionweb cam chat between 2 systems project Pin
Member 1048885126-Dec-13 5:24
Member 1048885126-Dec-13 5:24 
AnswerRe: web cam chat between 2 systems project Pin
Richard MacCutchan26-Dec-13 5:32
mveRichard MacCutchan26-Dec-13 5:32 
Questionhow to access the last modified time of the blob uploaded Pin
Trilok M Chowdary25-Dec-13 0:24
professionalTrilok M Chowdary25-Dec-13 0:24 
QuestionRe: how to access the last modified time of the blob uploaded Pin
ZurdoDev27-Dec-13 10:54
professionalZurdoDev27-Dec-13 10:54 
QuestionSession state handling in asp.net Pin
Otekpo Emmanuel24-Dec-13 2:39
Otekpo Emmanuel24-Dec-13 2:39 
AnswerRe: Session state handling in asp.net Pin
thatraja24-Dec-13 3:06
professionalthatraja24-Dec-13 3:06 
GeneralSolved: Session state handling in asp.net Pin
Otekpo Emmanuel24-Dec-13 6:00
Otekpo Emmanuel24-Dec-13 6:00 
JokeRe: Solved: Session state handling in asp.net Pin
thatraja25-Dec-13 22:49
professionalthatraja25-Dec-13 22:49 
QuestionAsp.net datalist control Pin
Otekpo Emmanuel24-Dec-13 0:44
Otekpo Emmanuel24-Dec-13 0:44 
AnswerRe: Asp.net datalist control Pin
joginder-banger25-Dec-13 15:12
professionaljoginder-banger25-Dec-13 15:12 
GeneralSolved: Asp.net datalist control Pin
Otekpo Emmanuel27-Dec-13 5:05
Otekpo Emmanuel27-Dec-13 5:05 
Questionnot able to connect to remote server with filezilla Pin
ank17098922-Dec-13 21:55
ank17098922-Dec-13 21:55 
QuestionRe: not able to connect to remote server with filezilla Pin
ZurdoDev27-Dec-13 10:55
professionalZurdoDev27-Dec-13 10:55 
QuestionHost my website on PC in my network Pin
Tabu9022-Dec-13 21:20
Tabu9022-Dec-13 21:20 

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.