I have an issue with Virtual Earth.
I put the following code in the user control page load and get part of a map, then the page hangs with 'Internet Explorer cannot open the internet site. Operation Aborted.' Help!
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim MapString As String = "<script>var map = null; function GetMap(){ map = new VEMap('myMap'); map.LoadMap(new VELatLong(47.6, -122.33), 10 ,'h' ,false);}GetMap();</script>"
Page.RegisterStartupScript("mapstring", MapString)
End Sub
The code works fine in an aspx page
I put the following code in the user control page load and get part of a map, then the page hangs with 'Internet Explorer cannot open the internet site. Operation Aborted.' Help!
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim MapString As String = "<script>var map = null; function GetMap(){ map = new VEMap('myMap'); map.LoadMap(new VELatLong(47.6, -122.33), 10 ,'h' ,false);}GetMap();</script>"
Page.RegisterStartupScript("mapstring", MapString)
End Sub
The code works fine in an aspx page
Last edited: