Click here to Skip to main content
15,922,630 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: dropdownchosen Pin
Karthik_Mahalingam4-Jan-14 11:40
professionalKarthik_Mahalingam4-Jan-14 11:40 
QuestionAsp.net panel control Pin
Otekpo Emmanuel30-Dec-13 13:27
Otekpo Emmanuel30-Dec-13 13:27 
Questionscafolding Pin
Member 1049405229-Dec-13 19:59
Member 1049405229-Dec-13 19:59 
AnswerRe: scafolding Pin
thatraja29-Dec-13 23:17
professionalthatraja29-Dec-13 23:17 
QuestionASP.NET or ASP.NET MVC Pin
Ger Hayden29-Dec-13 9:52
Ger Hayden29-Dec-13 9:52 
AnswerRe: ASP.NET or ASP.NET MVC Pin
thatraja29-Dec-13 16:38
professionalthatraja29-Dec-13 16:38 
QuestionAsp.net: upload zip files and download Pin
Otekpo Emmanuel28-Dec-13 12:46
Otekpo Emmanuel28-Dec-13 12:46 
QuestionRe: Asp.net: upload zip files and download Pin
ZurdoDev1-Jan-14 15:33
professionalZurdoDev1-Jan-14 15:33 
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 

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.