Microsoft JScript 运行时错误: Sys.ArgumentException: 对于控件和行为,值不能为 null
调用百度地图api 异步刷新
.aspx
<body onload="initMap(103.823305,36.064226,5)">
<form id="form1" runat="server">
<div style="width: 1360px; height: 560px; border: #ccc solid 1px;" id="dituContent">
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:Timer ID="Timer1" runat="server">
</asp:Timer>
</ContentTemplate>
</asp:UpdatePanel>
</div>
</form>
</body>
上面的情况下 将报运行错误
Microsoft JScript 运行时错误: Sys.ArgumentException: 对于控件和行为,值不能为 null
当把 timer注释了 就没有异常
<%-- <asp:Timer ID="Timer1" runat="server">
</asp:Timer>--%>
这是为什么 该如何处理 谢谢 我需要用到timer控件