ThinkGeo.com    |     Documentation    |     Premium Support

Problems implementing click events when control is in an update panel

Support,


I have created a marker on my map and want to be able to click on it to get information back about that marker.


My map is in a user control and when I click the marker nothing happens. If I remove the map from my user control and click the marker then it works properly.


Is there any link I need to setup so that my marker_click event will hit my server side code while my map is in a user control?


Thanks!


Steve



Steve, 
  
 If the map is in an update panel, I don’t think you need to do anything special. Just drag and drop the map into it and everything should be fine. Please have a look the sample in “Markers”->”ClickEventOnAMarker” to get more info. 
  
 I got an exception when I click the marker where the map is in a user control, and I recreated your issue by putting a map into a user control, and putting that user control into an update panel. This is a known bug and has been solved in our latest Beta (will be released in about one week). So if that’s your case, can you wait a couple days and try the new version? I think that one will solve your problem. 
  
 Ben