I have an ASP.NET application that must perform the following steps.
- In the PaginaUno.aspx populates and displays a gridview and the user selects a row.
- Opens PaginaDos.aspx running a JavaScript and shows googlemap with the data collected in the PaginaUno.aspx
Problem: that in step two shows object map but without markers.
I can not either automatically function pintamarkers() JavaScript activated by an event of ASP.NET) show the markers that I have defined.
Manual implementation works because I have defined in javascript on PaginaDos.aspx a button that runs pintamarkers() when you click and show the markers.
I have tried to:
// body onload="pintamarkers()">
and sends the error
"Microsoft JScript runtime error: 'map' is null or not an object"
How I can make the function pintamarkers()
to run automatically when you load the PaginaDos.aspx ?
Thanks in advance for your answers.