Select to view content in your preferred language

Map disappear after first partial postback

5058
2
07-16-2013 12:50 PM
JafarAl-Kofahi
Deactivated User
I have an ASP.Net application that uses AJAX.Net, in one page of my application we want to have some panels change their visibility (be hidden then become visible), one of these panels have my map control. My problem is when I have this panel within an update panel (must have!).

The map would only load the first time, then in the next postback (partial or complete) it disappears. I tried recreating the map after every partial postback (scriptmanage.EndRequestEvent) but with no luck.

I had attached a sample application that demonstrates my problem, any help would be much appreciated
0 Kudos
2 Replies
JosephDwyer
Deactivated User

Did you ever find a solution?  I am running into the exact same issue.

0 Kudos
JafarAl-Kofahi
Deactivated User

Hi Joseph,

Yes in my case, I fixed it by making sure that whenever I am navigating away from the page (or hiding the panel) I unload the map (call the map object Destroy method), and when I am navigating back to the map page or when I need to show the panel again, I reload the map (calling the function that init and load the map)

HTH

Jafar

0 Kudos