c# - Google maps api not working on postback -


i using google maps api load streets in textbox.it working properly.my problem on postback initialize method in javascript not working , data not loading

i using

                           function initialize() {             //my code              }              google.maps.event.adddomlistener(window, 'load', initialize);                           

please me

you need re-initialize map on post-back code not run again. if using updatepanel way bind end_requesthandler i.e.

var prm = window.sys.webforms.pagerequestmanager.getinstance(); prm.add_endrequest(endrequesthandler);  function endrequesthandler() {     // initialize map again } 

Comments

Popular posts from this blog

node.js - Bad Request - node js ajax post -

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -