Markers lost on postback

Jul 17, 2012 at 8:44 AM
Edited Jul 17, 2012 at 8:45 AM

I am using GoogleMap 6. In older version, I think that was 4.1 or more older, code like following worked but now it is not working.

// Added marker on map

Marker marker = new Marker();
marker.Draggable = true;
marker.Address = fullLocationName;

//On button click. Marker is lost.

protected void btnAddLocation_Click(object sender, EventArgs e)
    int i = map1.Markers.Count;

    // i is zero here.


How to get marker and its lat/long on postback.

Can anybody help? Thanks.