map.LoadMap on the fly in ContentPlaceHolder? IE fails now.
<%
@PageLanguage="C#"EnableEventValidation="false"AutoEventWireup="true"CodeFile="Default.aspx.cs"Inherits="_Default"MasterPageFile="~/Courts.master" %><asp:ContentID="Map"ContentPlaceHolderID="Main"runat="server">
<inputid="Submit1"type="button"value="button"onclick="return Submit1_onclick()"/>
<divid="mymapcontroldiv"style="position:absolute;left:25%;top:auto;height:200px;width:50%;"></div><scripttype="text/javascript">
//<![CDATA[
var map =new VEMap("mymapcontroldiv");
******************I'D LIKE TO RIGHT HERE SAYLoadMap(); THE MAP DOES SHOW IN THE DIV, THEN
AN ERROR DIALOG:
IE cannot open the internet site:http://locahost/Maps/Default.aspx
Operation Aborted.
The IE statusbar is almost complete,
the statusbar says: Downloading datahttp://maps.live.com/cursors/grab.cur...
So how can the map be shown in this div on a page that has a master page upon load?
function ShowMap()
{
map.LoadMap(new VELatLong(40.46, -80.01), 7, VEMapStyle.Road,false);
}
//]]>
</script>
</asp:Content>
MASTERPAGE:
<%
@MasterLanguage="C#"AutoEventWireup="true"CodeFile="Courts.master.cs"Inherits="Courts" %><%
@RegisterAssembly="AjaxControlToolkit"Namespace="AjaxControlToolkit"TagPrefix="cc1" %><!DOCTYPEhtmlPUBLIC"-//W3C//DTD XHTML 1.0 Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<htmlxmlns="http://www.w3.org/1999/xhtml">
<headrunat="server">
<title>Family Courts</title> <scripttype="text/javascript" src="http://dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=5"> </script> <linkhref="StyleSheet.css"rel="stylesheet"type="text/css"/></head>
<body>
<formid="form1"runat="server">...
found the answer....here:http://viavirtualearth.com/wiki/DeferScript.ashx

