This project is read-only.

Getting marker's lang and long values

Aug 3, 2009 at 4:05 PM

Hi, I put a map control and a draggable marker on it, on my form. I want users drag the marker to show their places. and click button to save values to database

protected void Button2_Click(object sender, EventArgs e)
        double lat = GMap1.Markers[0].Latitude;
        double longi = GMap1.Markers[0].Longitude;
        myclass.savemapvalues(lat, long);       

I get always the default values which loads the map onPageLoad event, values not change even I drag the marker to different places. Any suggestion?


Aug 31, 2009 at 8:04 AM

As seen, nobody knows how to get lang and lat values?